Override CHttpException for AngularJS

Hey everyone,

I am using AngularJS with YII. For this I want to override CHttpException class. Is there any way to do that?