Changed class parser to handle exceptions.