Commit 05136a3b authored by Antoine Millet's avatar Antoine Millet
Browse files

Added RpcConnectionError exception class.

NoFreeLabelError and FallbackModeEnabledError are now extending this new
class.
parent 057a556d
Loading
Loading
Loading
Loading
+9 −2
Original line number Diff line number Diff line
@@ -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