CI_Exceptions::__construct PHP Method

__construct() public method

Class constructor
public __construct ( ) : void
return void
    public function __construct()
    {
        $this->ob_level = ob_get_level();
        // Note: Do not log messages from this constructor.
    }

Usage Example

 /**
  * Initialize execption class
  *
  * @return    void
  */
 public function __construct()
 {
     parent::__construct();
     if (function_exists('get_instance') && class_exists('CI_Controller', false)) {
         $this->ci = get_instance();
     }
 }
All Usage Examples Of CI_Exceptions::__construct