1"""Errors thrown by stomp.py connections. 2""" 3 4class StompException(Exception): 5 """ 6 Common exception class. All specific stomp.py exceptions are subclasses 7 of StompException, allowing the library user to catch all current and 8 future library exceptions. 9 """ 10 11 12class ConnectionClosedException(StompException): 13 """ 14 Raised in the receiver thread when the connection has been closed 15 by the server. 16 """ 17 18 19class NotConnectedException(StompException): 20 """ 21 Raised when there is currently no server connection. 22 """ 23 24 25class ConnectFailedException(StompException): 26 """ 27 Raised by Connection.attempt_connection when reconnection attempts 28 have exceeded Connection.__reconnect_attempts_max. 29 """ 30 31 32class InterruptedException(StompException): 33 """ 34 Raised by receive when data read is interrupted. 35 """ 36