/** * Constructor. * * @param string|null $message Message * @param int $code Code of the exception * @param Exception|null $previousException Previously thrown exception - AS_OF: PHP 5.3 introduced! * * @author Benjamin Carl <*****@*****.**> */ public function __construct($message = null, $code = 0, $previousException = null) { // Add prefix to message ... $message = sprintf('%s: %s', get_class($this), $message); // Get final code $code = $this->generateUniqueCode($this->file, $code); // Dispatch to parent parent::__construct($message, $code, $previousException); }
/** * Constructor. * * @param string $message Message of the exception * @param int $code Error-code of the exception * @param Exception $previous Previous thrown exception which should be repacked * * @author Benjamin Carl <*****@*****.**> * @access public */ public function __construct($message = null, $code = 0, Exception $previous = null) { parent::__construct($message, $code, $previous); }