# Superclass of all exceptions thrown class IMException(Exception): pass # Exception when Network is Unreachable. class IMNetworkError(IMException): pass # Exception when the Transport returns errors, # eg. Illegal Checksums, Error Codes. class IMTransportError(IMException): pass # Exceptions when attempting to Connect class IMConnectError(IMException): pass # Exceptions when disconnecting class IMDisconnectException(IMException): pass class IMNoSuchStatus(IMException): pass class IMNoSuchUser(IMException): pass