public function __construct($message = "", $databaseMessage = "", \Exception $previous = null) { if ($message != "" && $databaseMessage != "") { $message .= ": " . $databaseMessage; } elseif ($message == "" && $databaseMessage != "") { $message = $databaseMessage; } $this->databaseMessage = $databaseMessage; parent::__construct($message, 400, '', 0, $previous); }
public function __construct($message = "", $code = 0, \Exception $previous = null) { parent::__construct($message, $code, '', '', $previous); }
/** * @param string $message * @param \Exception $previous */ public function __construct($message = "", \Exception $previous = null) { parent::__construct($message, 140, '', 0, $previous); }
/** * Creates new exception object. * * @param string $message Exception message * @param string $path Path that generated exception. * @param \Exception $previous */ public function __construct($message = "", $path = "", \Exception $previous = null) { parent::__construct($message, 120, '', 0, $previous); $this->path = $path; }