/** * Create a base exception and save the log of what's happening. * * @param string $message the error message * @param int $errorCode the error code */ public function __construct($message, $errorCode) { //perform a basic Exception constructor call parent::__construct($message, $errorCode, null); //setup an empty logger $this->logger = null; $logger = !is_null(Environment::GetCurrentEnvironment()) ? new Logger() : new Logger('null'); //build the new log entry $this->setLogger($logger); //and use it to transmit the log entry $this->writeLog(); }
/** * Create the symmetric-related exception. * * @param string $message the error message * @param int $errorCode the symmetric encryption error code */ public function __construct($message, $errorCode) { parent::__construct($message, $errorCode); }