Ejemplo n.º 1
0
 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);
 }
Ejemplo n.º 2
0
 public function __construct($message = "", $code = 0, \Exception $previous = null)
 {
     parent::__construct($message, $code, '', '', $previous);
 }
Ejemplo n.º 3
0
 /**
  * @param string $message
  * @param \Exception $previous
  */
 public function __construct($message = "", \Exception $previous = null)
 {
     parent::__construct($message, 140, '', 0, $previous);
 }
Ejemplo n.º 4
0
 /**
  * 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;
 }