Skip to content
exceptions.py 599 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.
    '''