blob: 398096bbb0dbb7cf3344b2fa71361b6878c37780 [file] [log] [blame]
"""Errors thrown by stomp.py connections.
"""
class StompException(Exception):
"""
Common exception class. All specific stomp.py exceptions are subclasses
of StompException, allowing the library user to catch all current and
future library exceptions.
"""
class ConnectionClosedException(StompException):
"""
Raised in the receiver thread when the connection has been closed
by the server.
"""
class NotConnectedException(StompException):
"""
Raised when there is currently no server connection.
"""
class ConnectFailedException(StompException):
"""
Raised by Connection.attempt_connection when reconnection attempts
have exceeded Connection.__reconnect_attempts_max.
"""
class InterruptedException(StompException):
"""
Raised by receive when data read is interrupted.
"""