/**
  * Construct the exception.
  * @param  string  Message describing the exception
  * @param  int     Some code
  * @param  string SQL command
  */
 public function __construct($message = NULL, $code = 0, $severity = NULL, $sql = NULL)
 {
     parent::__construct($message, (int) $code, $sql);
     $this->severity = $severity;
 }
Example #2
0
 /**
  * Constructs an exception above DibiException
  * @param string $message Expcetion message
  * @return Exception
  */
 public function __construct($message)
 {
     return parent::__construct($message, 0);
 }
Example #3
0
 /**
  * Construct an dibi driver exception.
  *
  * @param string  Message describing the exception
  * @param int     Some code
  * @param  string SQL command
  */
 public function __construct($message = NULL, $code = 0, $sql = NULL)
 {
     parent::__construct($message, (int) $code);
     $this->sql = $sql;
     dibi::notify(NULL, 'exception', $this);
 }
Example #4
0
 public function __construct($message = NULL, $code = 0, $sql = NULL)
 {
     parent::__construct($message, (int) $code);
     $this->sql = $sql;
 }