Yeah, it is probably better here to throw the exception and handle it where the parser is used.