diff --git a/library/Icinga/Data/Filter/FilterParseException.php b/library/Icinga/Data/Filter/FilterParseException.php index f2b732bc4..5c33fb996 100644 --- a/library/Icinga/Data/Filter/FilterParseException.php +++ b/library/Icinga/Data/Filter/FilterParseException.php @@ -7,4 +7,25 @@ use Icinga\Exception\IcingaException; class FilterParseException extends IcingaException { + protected $char; + + protected $charPos; + + public function __construct($message, $filter, $char, $charPos, ...$additional) + { + parent::__construct($message, $filter, $char, $charPos, ...$additional); + + $this->char = $char; + $this->charPos = $charPos; + } + + public function getChar() + { + return $this->char; + } + + public function getCharPos() + { + return $this->charPos; + } }