28 lines
No EOL
800 B
TypeScript
Executable file
28 lines
No EOL
800 B
TypeScript
Executable file
import { AuthError } from "./AuthError.js";
|
|
import * as CacheErrorCodes from "./CacheErrorCodes.js";
|
|
export { CacheErrorCodes };
|
|
export declare const CacheErrorMessages: {
|
|
cache_quota_exceeded: string;
|
|
cache_error_unknown: string;
|
|
};
|
|
/**
|
|
* Error thrown when there is an error with the cache
|
|
*/
|
|
export declare class CacheError extends AuthError {
|
|
/**
|
|
* Short string denoting error
|
|
*/
|
|
errorCode: string;
|
|
/**
|
|
* Detailed description of error
|
|
*/
|
|
errorMessage: string;
|
|
constructor(errorCode: string, errorMessage?: string);
|
|
}
|
|
/**
|
|
* Helper function to wrap browser errors in a CacheError object
|
|
* @param e
|
|
* @returns
|
|
*/
|
|
export declare function createCacheError(e: unknown): CacheError;
|
|
//# sourceMappingURL=CacheError.d.ts.map
|