summaryrefslogtreecommitdiffhomepage
path: root/gui/src/main/errors.ts
blob: 85adf965a57db5e715a9c8b956d525287189baed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export class NoCreditError extends Error {
  constructor() {
    super("Account doesn't have enough credit available for connection");
  }
}

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');
  }
}