def __get_exception_message(self):
exception_info = sys.exc_info()[<NUM_LIT:1>]<EOL>if hasattr(exception_info, '<STR_LIT>'):<EOL><INDENT>exc_message = exception_info.msg<EOL><DEDENT>elif hasattr(exception_info, '<STR_LIT:message>'):<EOL><INDENT>exc_message = exception_info.message<EOL><DEDENT>else:<EOL><INDENT>exc_message = '<STR_LIT>'<EOL><DEDENT>return exc_message<EOL>
This method extracts the message from an exception if there
            was an exception that occurred during the test, assuming
            that the exception was in a try/except block and not thrown.