UNPKG

563 BTypeScriptView Raw
1export declare const AuthErrorMessage: {
2 unexpectedError: {
3 code: string;
4 desc: string;
5 };
6 noWindowObjectError: {
7 code: string;
8 desc: string;
9 };
10};
11/**
12 * General error class thrown by the MSAL.js library.
13 */
14export declare class AuthError extends Error {
15 errorCode: string;
16 errorMessage: string;
17 constructor(errorCode: string, errorMessage?: string);
18 static createUnexpectedError(errDesc: string): AuthError;
19 static createNoWindowObjectError(errDesc: string): AuthError;
20}