sql = $sql; dibi::notify('exception', NULL, $this); } final public function getSql() { return $this->sql; } public function __toString() { $s = parent::__toString(); if ($this->sql) { $s .= "\nSQL: " . $this->sql; } return $s; } }