/** * Constructs the Exception. * * @param string Error message * @param int Error code (default: 0) */ public function __construct($message, $code = 0) { if (self::$objInExec instanceof self) { self::$objInExec->hardExit(); } self::$objInExec = $this; parent::__construct($message, $code); }
/** * Constructs the CoreException. * * @param string Core error message * @param int Core error code (default: 0) */ public function __construct($message, $code = 0) { $this->data = array(); parent::__construct($message, $code); }