old_contents: """Errors thrown by stomp.py connections.
  """
  
  
  class ConnectionClosedException(Exception):
      """
      Raised in the receiver thread when the connection has been closed
      by the server.
      """
      pass
  
  
  class NotConnectedException(Exception):
      """
      Raised when there is currently no server connection.
      """
      pass
  
  
  class ConnectFailedException(Exception):
      """
      Raised by Connection.attempt_connection when reconnection attempts
      have exceeded Connection.__reconnect_attempts_max.
      """
  
  
  class InterruptedException(Exception):
      """
      Raised by receive when data read is interrupted.
      """
  
new_contents: """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.
      """
  
subject: Add a common exception class so I can catch all stomp.py exceptions in one go.