public function __construct($code, $message, $query = null, \Exception $previous_exception = null) { parent::__construct($code, $message, $query, $previous_exception); }
public function __construct(Core\Query $query, \Exception $previous_exception = null) { parent::__construct('QUERY_EXCEPTION', 'Query error: ' . $query->error, $query, $previous_exception); }