52 lines
1.6 KiB
Python
52 lines
1.6 KiB
Python
# uncompyle6 version 3.9.2
|
|
# Python bytecode version base 3.7.0 (3394)
|
|
# Decompiled from: Python 3.8.19 (default, Mar 20 2024, 15:27:52)
|
|
# [Clang 14.0.6 ]
|
|
# Embedded file name: /var/user/app/device_supervisorbak/device_supervisor/lib/Pyro4/errors.py
|
|
# Compiled at: 2024-04-18 03:12:55
|
|
# Size of source mod 2**32: 1392 bytes
|
|
"""
|
|
Definition of the various exceptions that are used in Pyro.
|
|
|
|
Pyro - Python Remote Objects. Copyright by Irmen de Jong (irmen@razorvine.net).
|
|
"""
|
|
|
|
class PyroError(Exception):
|
|
__doc__ = "Generic base of all Pyro-specific errors."
|
|
|
|
|
|
class CommunicationError(PyroError):
|
|
__doc__ = "Base class for the errors related to network communication problems."
|
|
|
|
|
|
class ConnectionClosedError(CommunicationError):
|
|
__doc__ = "The connection was unexpectedly closed."
|
|
|
|
|
|
class TimeoutError(CommunicationError):
|
|
__doc__ = "\n A call could not be completed within the set timeout period,\n or the network caused a timeout.\n "
|
|
|
|
|
|
class ProtocolError(CommunicationError):
|
|
__doc__ = "Pyro received a message that didn't match the active Pyro network protocol, or there was a protocol related error."
|
|
|
|
|
|
class MessageTooLargeError(ProtocolError):
|
|
__doc__ = "Pyro received a message or was trying to send a message that exceeds the maximum message size as configured."
|
|
|
|
|
|
class NamingError(PyroError):
|
|
__doc__ = "There was a problem related to the name server or object names."
|
|
|
|
|
|
class DaemonError(PyroError):
|
|
__doc__ = "The Daemon encountered a problem."
|
|
|
|
|
|
class SecurityError(PyroError):
|
|
__doc__ = "A security related error occurred."
|
|
|
|
|
|
class SerializeError(ProtocolError):
|
|
__doc__ = "Something went wrong while (de)serializing data."
|