From 05136a3b8c374f01d0c4af2c0e1c16201b687fd4 Mon Sep 17 00:00:00 2001 From: Antoine Millet Date: Fri, 7 Oct 2011 11:23:16 +0200 Subject: [PATCH] Added RpcConnectionError exception class. NoFreeLabelError and FallbackModeEnabledError are now extending this new class. --- sjrpc/core/exceptions.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/sjrpc/core/exceptions.py b/sjrpc/core/exceptions.py index 97e25fb..d7def24 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 -- GitLab