Skip to content
exceptions.py 753 B
Newer Older
Antoine Millet's avatar
Antoine Millet committed

class RpcError(Exception):
Antoine Millet's avatar
Antoine Millet committed
    '''
    Exception raised by caller when an error occurs while execution of remote
    procedure call.
    '''
Antoine Millet's avatar
Antoine Millet committed
    def __init__(self, exception, message):
        self.exception = exception
        self.message = message
Antoine Millet's avatar
Antoine Millet committed
    def __str__(self):
        return '%s' % self.message


class SocketRpcError(Exception):

    '''
    Exception used internally to raise a socket fault.
    '''


class NoFreeLabelError(Exception):

    '''
    Exception raised when no more free labels are available for protocol
    allocation.
    '''


class FallbackModeEnabledError(Exception):

    '''
    Exception raised when a feature which is not compatible with fallback mode
    is used.
    '''