private handleQueryException ( Exception $e, Kdyby\Persistence\Query $queryObject ) | ||
$e | Exception | |
$queryObject | Kdyby\Persistence\Query |
private function handleQueryException(\Exception $e, Persistence\Query $queryObject)
{
$lastQuery = $queryObject instanceof QueryObject ? $queryObject->getLastQuery() : NULL;
return new QueryException($e, $lastQuery, '[' . get_class($queryObject) . '] ' . $e->getMessage());
}