5 class DatabaseError extends \Exception
8 public function __construct($message, $code = 500, Exception $previous = null, $oSql)
10 parent::__construct($message, $code, $previous);
14 public function __toString()
16 return __CLASS__ . ": [{$this->code}]: {$this->message}\n";
19 public function getSqlError()
21 return $this->oSql->getMessage();
24 public function getSqlDebugDump()
27 return var_export($this->oSql, true);
29 return $this->oSql->getUserInfo();