blob: 7771d1f9c6a32937e24582e5392515b172afa787 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
class MissingConfigFileError(Exception):
pass
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"
|