@staticmethod<EOL><INDENT>def erred():<DEDENT>
exc_type, exc, tb = sys.exc_info()<EOL>if issubclass(exc_type, socket.timeout):<EOL><INDENT>raise TimedOut<EOL><DEDENT>elif issubclass(exc_type, requests.ConnectionError):<EOL><INDENT>internal_exc = exc.args[<NUM_LIT:0>]<EOL>if isinstance(internal_exc, ReadTimeoutError):<EOL><INDENT>raise TimedOut<EOL><DEDENT>else:<EOL><INDENT>raise ConnectionError(exc)<EOL><DEDENT><DEDENT>elif issubclass(exc_type, requests.RequestException):<EOL><INDENT>raise EtcException(exc)<EOL><DEDENT>reraise(exc_type, exc, tb)<EOL>
Wraps errors.  Call it in `except` clause::

           try:
               do_something()
           except:
               self.erred()