* @package Mammut\DB */ class SQLException extends DBException { private $query = ''; private $param = false; public function __construct($message, $query = '', $code = 0, $param = false) { parent::__construct($message, $code); $this->query = $query; $this->param = $param; } /** * Fetches the query which produced the exception * * @return string the sql query */ public function getQuery() { return $this->query; } public function getParam() { return $this->param; } }