mirror of
https://github.com/MeowLynxSea/Proksea.git
synced 2025-07-10 19:34:41 +00:00
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
import * as AuthErrorCodes from "./AuthErrorCodes";
|
|
export { AuthErrorCodes };
|
|
export declare const AuthErrorMessages: {
|
|
unexpected_error: string;
|
|
post_request_failed: string;
|
|
};
|
|
/**
|
|
* AuthErrorMessage class containing string constants used by error codes and messages.
|
|
* @deprecated Use AuthErrorCodes instead
|
|
*/
|
|
export declare const AuthErrorMessage: {
|
|
unexpectedError: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
postRequestFailed: {
|
|
code: string;
|
|
desc: string;
|
|
};
|
|
};
|
|
/**
|
|
* General error class thrown by the MSAL.js library.
|
|
*/
|
|
export declare class AuthError extends Error {
|
|
/**
|
|
* Short string denoting error
|
|
*/
|
|
errorCode: string;
|
|
/**
|
|
* Detailed description of error
|
|
*/
|
|
errorMessage: string;
|
|
/**
|
|
* Describes the subclass of an error
|
|
*/
|
|
subError: string;
|
|
/**
|
|
* CorrelationId associated with the error
|
|
*/
|
|
correlationId: string;
|
|
constructor(errorCode?: string, errorMessage?: string, suberror?: string);
|
|
setCorrelationId(correlationId: string): void;
|
|
}
|
|
export declare function createAuthError(code: string, additionalMessage?: string): AuthError;
|
|
//# sourceMappingURL=AuthError.d.ts.map
|