correctly throw exceptions in quiz_parser