summaryrefslogtreecommitdiff
path: root/src/leap/eip/conductor.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-08-21 03:30:44 +0900
committerkali <kali@leap.se>2012-08-21 03:30:44 +0900
commit1abd35337a186e7ab1bab414c0a3809b8583b5a3 (patch)
tree288ba17389dd0ae13c7f5a5d84bf66b234fc2ef0 /src/leap/eip/conductor.py
parent6716c0eb2d82df92838017dc5cb11fee1861308f (diff)
moved exceptions to its own file
Diffstat (limited to 'src/leap/eip/conductor.py')
-rw-r--r--src/leap/eip/conductor.py36
1 files changed, 1 insertions, 35 deletions
diff --git a/src/leap/eip/conductor.py b/src/leap/eip/conductor.py
index 776a1092..f528d639 100644
--- a/src/leap/eip/conductor.py
+++ b/src/leap/eip/conductor.py
@@ -26,44 +26,10 @@ from leap.eip.vpnmanager import OpenVPNManager, ConnectionRefusedError
logger = logging.getLogger(name=__name__)
-# TODO Move exceptions to their own module
-# eip.exceptions
-
-class EIPNoCommandError(Exception):
- pass
-
-
-class ConnectionError(Exception):
- """
- generic connection error
- """
- pass
-
-
-class EIPClientError(Exception):
- """
- base EIPClient exception
- """
- def __str__(self):
- if len(self.args) >= 1:
- return repr(self.args[0])
- else:
- return ConnectionError
-
-
-class UnrecoverableError(EIPClientError):
- """
- we cannot do anything about it, sorry
- """
- # XXX we should catch this and raise
- # to qtland, so we emit signal
- # to translate whatever kind of error
- # to user-friendly msg in dialog.
- pass
-
#
# Openvpn related classes
#
+# XXX deprecated! moved to eipconnection
class OpenVPNConnection(object):