Pyro5.errors — Exception classes

The exception hierarchy is as follows:

Exception
  |
  +-- PyroError
        |
        +-- NamingError
        +-- DaemonError
        +-- SecurityError
        +-- CommunicationError
              |
              +-- ConnectionClosedError
              +-- TimeoutError
              +-- ProtocolError
                      |
                      +-- MessageTooLargeError
                      +-- SerializeError

Definition of the various exceptions that are used in Pyro.

exception Pyro5.errors.CommunicationError

Base class for the errors related to network communication problems.

exception Pyro5.errors.ConnectionClosedError

The connection was unexpectedly closed.

exception Pyro5.errors.DaemonError

The Daemon encountered a problem.

exception Pyro5.errors.MessageTooLargeError

Pyro received a message or was trying to send a message that exceeds the maximum message size as configured.

exception Pyro5.errors.NamingError

There was a problem related to the name server or object names.

exception Pyro5.errors.ProtocolError

Pyro received a message that didn’t match the active Pyro network protocol, or there was a protocol related error.

exception Pyro5.errors.PyroError

Generic base of all Pyro-specific errors.

exception Pyro5.errors.SecurityError

A security related error occurred.

exception Pyro5.errors.SerializeError

Something went wrong while (de)serializing data.

exception Pyro5.errors.TimeoutError

A call could not be completed within the set timeout period, or the network caused a timeout.

Pyro5.errors.excepthook(ex_type, ex_value, ex_tb)

An exception hook you can use for sys.excepthook, to automatically print remote Pyro tracebacks

Pyro5.errors.format_traceback(ex_type=None, ex_value=None, ex_tb=None, detailed=False)

Formats an exception traceback. If you ask for detailed formatting, the result will contain info on the variables in each stack frame. You don’t have to provide the exception info objects, if you omit them, this function will obtain them itself using sys.exc_info().

Pyro5.errors.get_pyro_traceback(ex_type=None, ex_value=None, ex_tb=None)

Returns a list of strings that form the traceback information of a Pyro exception. Any remote Pyro exception information is included. Traceback information is automatically obtained via sys.exc_info() if you do not supply the objects yourself.