summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/errors.ts
diff options
context:
space:
mode:
authorAndrej Mihajlov <and@mullvad.net>2019-02-27 16:05:00 +0100
committerAndrej Mihajlov <and@mullvad.net>2019-03-01 16:22:24 +0100
commit3f5426c08aedcb88e131b0be94308ccb342fc1d4 (patch)
treec947b36ecdfb404a2d2b605864c3e74afe26576d /gui/src/main/errors.ts
parent4de28cdf229c0016d7e05f24abc8c7aeac6e9dba (diff)
downloadmullvadvpn-3f5426c08aedcb88e131b0be94308ccb342fc1d4.tar.xz
mullvadvpn-3f5426c08aedcb88e131b0be94308ccb342fc1d4.zip
Move desktop to the root
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');
+ }
+}