FilterParseException: Store invalid char and its position

This commit is contained in:
Johannes Meyer 2020-07-07 16:11:10 +02:00
parent 79a6feeb4b
commit 7f6438e03c

View File

@ -7,4 +7,25 @@ use Icinga\Exception\IcingaException;
class FilterParseException extends 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;
}
} }