Please raise custom exception (i.e. `ParserException`) instead of generic `Exception`. This may be different exceptions in case of parsing grammar/text.