summaryrefslogtreecommitdiff
path: root/src/leap/eip/exceptions.py
diff options
context:
space:
mode:
authorkali <kali@leap.se>2012-09-12 08:59:31 +0900
committerkali <kali@leap.se>2012-09-12 08:59:31 +0900
commitac784abf56c27b696800d1ab0629e542a50005b0 (patch)
treed4af29b9cb4916ed0ed248f3f3784d5142c1a050 /src/leap/eip/exceptions.py
parenta7c77a931dadd6e4b94c00551d34fddff961e25b (diff)
parent8b353443d6e4523d9d95cba190daaec564838e72 (diff)
Merge branch 'feature/network_check' into develop
Close #502
Diffstat (limited to 'src/leap/eip/exceptions.py')
-rw-r--r--src/leap/eip/exceptions.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/leap/eip/exceptions.py b/src/leap/eip/exceptions.py
index 3c8f6afb..467be7fe 100644
--- a/src/leap/eip/exceptions.py
+++ b/src/leap/eip/exceptions.py
@@ -108,6 +108,22 @@ class EIPInitBadProviderError(EIPClientError):
class EIPConfigurationError(EIPClientError):
pass
+
+class NoDefaultInterfaceFoundError(EIPClientError):
+ message = "no default interface found"
+ usermessage = "Looks like your computer is not connected to the internet"
+
+
+class InterfaceNotFoundError(EIPClientError):
+ # XXX should take iface arg on init maybe?
+ message = "interface not found"
+
+
+class NoConnectionToGateway(EIPClientError):
+ message = "no connection to gateway"
+ usermessage = "Looks like there are problems with your internet connection"
+
+
#
# Errors that probably we don't need anymore
# chase down for them and check.