parameters: (self)
docstring: Return the message in this Exception.
docstring_summary: Return the message in this Exception.
docstring_tokens: Return the message in this Exception .
function: def __str__(self):
          """Return the message in this Exception."""
          if self.msg:
              return self.msg
          try:
              return self._fmt % self.__dict__
          except (NameError, ValueError, KeyError):
              e = sys.exc_info()[1]     # current exception
              return 'Unprintable exception %s: %s' \
                  % (repr(e), str(e))
function_tokens: def __str__ ( self ) : if self . msg : return self . msg try : return self . _fmt % self . __dict__ except ( NameError , ValueError , KeyError ) : e = sys . exc_info ( ) [ 1 ] # current exception return 'Unprintable exception %s: %s' % ( repr ( e ) , str ( e ) )