blob: 86b482f7bdd70c71220faba599512719843392be (
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
30
31
32
33
34
35
36
37
|
import { messages } from '../shared/gettext';
export class InvalidAccountError extends Error {
constructor() {
super(
// TRANSLATORS: Error message shown above login input when trying to login with a non-existent
// TRANSLATORS: account number.
messages.pgettext('login-view', 'Invalid account number'),
);
}
}
export class CommunicationError extends Error {
constructor() {
super('api.mullvad.net is blocked, please check your firewall');
}
}
export class TooManyDevicesError extends Error {
constructor() {
super(
// TRANSLATORS: Error message shown above login input when trying to login to an account with
// TRANSLATORS: too many registered devices.
messages.pgettext('login-view', 'Too many devices'),
);
}
}
export class ListDevicesError extends Error {
constructor() {
super(
// TRANSLATORS: Error message shown above login input when trying to login but the app fails
// TRANSLATORS: to fetch the list of registered devices.
messages.pgettext('login-view', 'Failed to fetch list of devices'),
);
}
}
|