Source code for pyrtma.exceptions

[docs] class RTMAMessageError(Exception): """Base exception for message errors.""" pass
[docs] class UnknownMessageType(RTMAMessageError): """Raised when there is no message definition.""" pass
[docs] class JSONDecodingError(RTMAMessageError): """Raised when there is an error decoding a message from json.""" pass
[docs] class InvalidMessageDefinition(RTMAMessageError): """Raised when there is message definition is out of sync with sent data.""" pass
[docs] class VersionMismatchWarning(UserWarning): """Raised when import message defs were compiled with a different pyrtma version""" pass
[docs] class ClientError(Exception): """Base exception for all Client Errors.""" pass
[docs] class MessageManagerNotFound(ClientError): """Raised when unable to connect to message manager.""" pass
[docs] class SocketOptionError(ClientError): """Raised when unable to set socket options.""" pass
[docs] class NotConnectedError(ClientError): """Raised when the client tries to read/write while not connected.""" pass
[docs] class ConnectionLost(ClientError): """Raised when there is a connection error with the server.""" pass
[docs] class AcknowledgementTimeout(ClientError): """Raised when client does not receive ack from message manager.""" pass
[docs] class InvalidDestinationModule(ClientError): """Raised when client tries to send to an invalid module.""" pass
[docs] class InvalidDestinationHost(ClientError): """Raised when client tries to send to an invalid host.""" pass
[docs] class InvalidSubscription(ClientError): """Raised when a subscription command is invalid""" pass
[docs] class LoggingConfigurationError(BaseException): """Raised when an attempt to configure a client logger is invalid""" pass