UNPKG

573 BTypeScriptView Raw
1import { AuthError } from "./AuthError";
2export 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 */
14export declare class ServerError extends AuthError {
15 constructor(errorCode: string, errorMessage?: string);
16 static createServerUnavailableError(): ServerError;
17 static createUnknownServerError(errorDesc: string): ServerError;
18}