summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/errors.ts
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-03-01 17:36:15 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-03-01 17:36:15 +0100
commit65ef2fcc8a4b58a92219ea0ae269c91f80be0062 (patch)
treeb69a7e097fcf2ff61a06b053147c564f3c0f0296 /gui/src/main/errors.ts
parent2610bd23035901ba0e25824629d3768b4430a708 (diff)
parent1a1eb84364add292974d7dafe69761270c7397ef (diff)
downloadmullvadvpn-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.ts29
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');
+ }
+}