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