code: def exception_class(self, exception):
  		
  
  		cls = type(exception)
  		if cls.__module__ == 'exceptions':  # Built-in exception.
  			return cls.__name__
  		return "%s.%s" % (cls.__module__, cls.__name__)
docs: Return a name representing the class of an exception.