summaryrefslogtreecommitdiff
path: root/src/leap/base/exceptions.py
diff options
context:
space:
mode:
authorantialias <antialias@leap.se>2012-09-25 16:05:02 -0400
committerantialias <antialias@leap.se>2012-09-25 16:05:02 -0400
commit15b017656e6865b7b85ae389ab3b462c562a1e42 (patch)
tree7e51d663651bf16bc28e7837c41bb8c6bbc4504a /src/leap/base/exceptions.py
parent021e7ea900c64af9577412f11349f69e01634c0c (diff)
moved LeapNetworkChecker and test in base.
Diffstat (limited to 'src/leap/base/exceptions.py')
-rw-r--r--src/leap/base/exceptions.py19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/leap/base/exceptions.py b/src/leap/base/exceptions.py
index 9c4aa77b..7771d1f9 100644
--- a/src/leap/base/exceptions.py
+++ b/src/leap/base/exceptions.py
@@ -4,3 +4,22 @@ class MissingConfigFileError(Exception):
class ImproperlyConfigured(Exception):
pass
+
+
+class NoDefaultInterfaceFoundError(Exception):
+ message = "no default interface found"
+ usermessage = "Looks like your computer is not connected to the internet"
+
+
+class InterfaceNotFoundError(Exception):
+ # XXX should take iface arg on init maybe?
+ message = "interface not found"
+
+
+class NoConnectionToGateway(Exception):
+ message = "no connection to gateway"
+ usermessage = "Looks like there are problems with your internet connection"
+
+
+class NoInternetConnection(Exception):
+ message = "No Internet connection found"