From f192732dcf70447d574b25b436f190d27a5cddd4 Mon Sep 17 00:00:00 2001 From: Alfredo Deza Date: Thu, 5 Mar 2015 14:55:14 -0500 Subject: [PATCH] create a new 'AgentError' base exception Signed-off-by: Alfredo Deza --- radosgw_agent/exceptions.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/radosgw_agent/exceptions.py b/radosgw_agent/exceptions.py index 1f3d0f1..477da53 100644 --- a/radosgw_agent/exceptions.py +++ b/radosgw_agent/exceptions.py @@ -1,12 +1,19 @@ +class AgentError(Exception): + """ + The actual base exception for the agent + """ -class ClientException(Exception): +class ClientException(AgentError): """ - Base radosgw_agent client exception. + Historical base radosgw_agent client exception. """ pass +class NetworkError(AgentError): + pass + class InvalidProtocol(ClientException): pass -- 2.47.3