Added ParserException in AParser.

Implemented exception throwing in AParser to force proper handling of parser implementations. STLParser has been updated, the remaining parsers also need to be updated to throw the ParserException instead of using internal handling.