diff options
| author | Andrej Mihajlov <and@mullvad.net> | 2019-03-01 17:36:15 +0100 |
|---|---|---|
| committer | Andrej Mihajlov <and@mullvad.net> | 2019-03-01 17:36:15 +0100 |
| commit | 65ef2fcc8a4b58a92219ea0ae269c91f80be0062 (patch) | |
| tree | b69a7e097fcf2ff61a06b053147c564f3c0f0296 /gui/src/main/errors.ts | |
| parent | 2610bd23035901ba0e25824629d3768b4430a708 (diff) | |
| parent | 1a1eb84364add292974d7dafe69761270c7397ef (diff) | |
| download | mullvadvpn-65ef2fcc8a4b58a92219ea0ae269c91f80be0062.tar.xz mullvadvpn-65ef2fcc8a4b58a92219ea0ae269c91f80be0062.zip | |
Merge branch 'remove-workspaces'
Diffstat (limited to 'gui/src/main/errors.ts')
| -rw-r--r-- | gui/src/main/errors.ts | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/gui/src/main/errors.ts b/gui/src/main/errors.ts new file mode 100644 index 0000000000..f13b99e3e9 --- /dev/null +++ b/gui/src/main/errors.ts @@ -0,0 +1,29 @@ +export class NoCreditError extends Error { + constructor() { + super("Account doesn't have enough credit available for connection"); + } +} + +export class NoInternetError extends Error { + constructor() { + super('Internet connectivity is currently unavailable'); + } +} + +export class NoDaemonError extends Error { + constructor() { + super('Could not connect to Mullvad daemon'); + } +} + +export class InvalidAccountError extends Error { + constructor() { + super('Invalid account number'); + } +} + +export class CommunicationError extends Error { + constructor() { + super('api.mullvad.net is blocked, please check your firewall'); + } +} |
