1 | import { AuthError } from "./AuthError";
|
2 | export declare const ServerErrorMessage: {
|
3 | serverUnavailable: {
|
4 | code: string;
|
5 | desc: string;
|
6 | };
|
7 | unknownServerError: {
|
8 | code: string;
|
9 | };
|
10 | };
|
11 | /**
|
12 | * Error thrown when there is an error with the server code, for example, unavailability.
|
13 | */
|
14 | export declare class ServerError extends AuthError {
|
15 | constructor(errorCode: string, errorMessage?: string);
|
16 | static createServerUnavailableError(): ServerError;
|
17 | static createUnknownServerError(errorDesc: string): ServerError;
|
18 | }
|