commit
70fdd58fe4
|
@ -4,11 +4,11 @@
|
||||||
|
|
||||||
namespace Icinga\Data\Filter;
|
namespace Icinga\Data\Filter;
|
||||||
|
|
||||||
use Exception;
|
use Icinga\Exception\IcingaException;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Filter Exception Class
|
* Filter Exception Class
|
||||||
*
|
*
|
||||||
* Filter Exceptions should be thrown on filter parse errors or similar
|
* Filter Exceptions should be thrown on filter parse errors or similar
|
||||||
*/
|
*/
|
||||||
class FilterException extends Exception {}
|
class FilterException extends IcingaException {}
|
||||||
|
|
|
@ -4,8 +4,8 @@
|
||||||
|
|
||||||
namespace Icinga\Data\Filter;
|
namespace Icinga\Data\Filter;
|
||||||
|
|
||||||
use Exception;
|
use Icinga\Exception\IcingaException;
|
||||||
|
|
||||||
class FilterParseException extends Exception
|
class FilterParseException extends IcingaException
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
|
@ -111,13 +111,13 @@ class FilterQueryString
|
||||||
$extra .= "\n" . implode("\n", $this->debug);
|
$extra .= "\n" . implode("\n", $this->debug);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new FilterParseException(sprintf(
|
throw new FilterParseException(
|
||||||
'Invalid filter "%s", unexpected %s at pos %d%s',
|
'Invalid filter "%s", unexpected %s at pos %d%s',
|
||||||
$this->string,
|
$this->string,
|
||||||
$char,
|
$char,
|
||||||
$this->pos,
|
$this->pos,
|
||||||
$extra
|
$extra
|
||||||
));
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected function readFilters($nestingLevel = 0, $op = null)
|
protected function readFilters($nestingLevel = 0, $op = null)
|
||||||
|
|
|
@ -4,8 +4,9 @@
|
||||||
|
|
||||||
|
|
||||||
namespace Icinga\Module\Monitoring\Exception;
|
namespace Icinga\Module\Monitoring\Exception;
|
||||||
use Exception;
|
|
||||||
|
|
||||||
class UnsupportedBackendException extends Exception
|
use Icinga\Exception\IcingaException;
|
||||||
|
|
||||||
|
class UnsupportedBackendException extends IcingaException
|
||||||
{
|
{
|
||||||
}
|
}
|
Loading…
Reference in New Issue