Return a name representing the class of an exception.

def exception_class(self, exception):
		"""Return a name representing the class of an exception."""

		cls = type(exception)
		if cls.__module__ == 'exceptions':  # Built-in exception.
			return cls.__name__
		return "%s.%s" % (cls.__module__, cls.__name__)