summaryrefslogtreecommitdiff
path: root/src/leap/base/exceptions.py
blob: 48d827f5ed74f0c77f49c2c17b972152320e6bbc (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
26
27
28
29
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"


class TunnelNotDefaultRouteError(Exception):
    message = "VPN Maybe be down."