sql = $sql; dibi::notify(NULL, 'exception', $this); } /** * @return string The SQL passed to the constructor */ final public function getSql() { return $this->sql; } /** * @return string string represenation of exception with SQL command */ public function __toString() { return parent::__toString() . ($this->sql ? "\nSQL: " . $this->sql : ''); } /** * @see NException::catchError (this is Late static binding fix */ public static function catchError($class = __CLASS__) { parent::catchError($class); } }