blob: 3358a9d922619cb236c1a0d680e50e3617fd61a0 (
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
|
export class BadNetworkError extends Error {
constructor() {
super('Network is bad.');
}
}
export class AlreadyLoginError extends Error {
constructor() {
super('Internal logical error. There is already a token saved. Please call validateUserLoginState first.');
}
}
export class BadCredentialsError extends Error {
constructor() {
super('Username or password is wrong.');
}
}
export class UnknownError extends Error {
constructor(public internalError?: any) {
super('Sorry, unknown error occured!');
}
}
export class ServerInternalError extends Error {
constructor(message?: string) {
super('Wrong server response. ' + message);
}
}
|