Skip to content

Commit

Permalink
FilterParseException: extend IcingaException
Browse files Browse the repository at this point in the history
refs #6931
  • Loading branch information
Al2Klimov committed Aug 27, 2014
1 parent afd0c20 commit e6612fe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions library/Icinga/Data/Filter/FilterParseException.php
Expand Up @@ -4,8 +4,8 @@

namespace Icinga\Data\Filter;

use Exception;
use Icinga\Exception\IcingaException;

class FilterParseException extends Exception
class FilterParseException extends IcingaException
{
}
6 changes: 3 additions & 3 deletions library/Icinga/Data/Filter/FilterQueryString.php
Expand Up @@ -15,7 +15,7 @@ class FilterQueryString
protected $reportDebug = false;

protected $length;

protected function __construct()
{
}
Expand Down Expand Up @@ -111,13 +111,13 @@ protected function parseError($char = null, $extraMsg = null)
$extra .= "\n" . implode("\n", $this->debug);
}

throw new FilterParseException(sprintf(
throw new FilterParseException(
'Invalid filter "%s", unexpected %s at pos %d%s',
$this->string,
$char,
$this->pos,
$extra
));
);
}

protected function readFilters($nestingLevel = 0, $op = null)
Expand Down

0 comments on commit e6612fe

Please sign in to comment.