diff --git a/sjrpc/core/exceptions.py b/sjrpc/core/exceptions.py index 97e25fb21f30c4d994b8854a843ffb1c04730632..d7def2405885bdb6f886fbc543770c69e53bedff 100644 --- a/sjrpc/core/exceptions.py +++ b/sjrpc/core/exceptions.py @@ -25,7 +25,14 @@ class SocketRpcError(Exception): ''' -class NoFreeLabelError(Exception): +class RpcConnectionError(Exception): + + ''' + Base class for RpcConnection errors. + ''' + + +class NoFreeLabelError(RpcConnectionError): ''' Exception raised when no more free labels are available for protocol @@ -33,7 +40,7 @@ class NoFreeLabelError(Exception): ''' -class FallbackModeEnabledError(Exception): +class FallbackModeEnabledError(RpcConnectionError): ''' Exception raised when a feature which is not compatible with fallback mode