''' Contains sjRpc exceptions. ''' class RpcError(Exception): ''' Exception raised by caller when an error occurs while execution of remote procedure call. ''' def __init__(self, exception, message): self.exception = exception self.message = message 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. '''