/** * Construct the parent and call the logger * * @param string $message An explanatory message explaining why the exception was thrown * @param int $code The error code for the exception. Zero is the default * @param string $module The module to which the exception applies * @param string $severity The severity of the error. Possible values defined in $cfg['Logger']['levels'] * */ public function __construct($message = null, $code = 0, $module = null, $severity = null) { ExceptionLogger::logMessage($this, $module, $severity); parent::__construct($message, $code); }