Urara-Blog/node_modules/.pnpm-store/v3/files/ee/9729a1cb351477de49dd617091d772616d96133300d5f613ca7209f6a61edec32f6c8c80762ceced674a40f2d40ede581be5146d7c154d88252c5e5ce2d27e
2022-08-14 01:14:53 +08:00

24 lines
751 B
Text

import { MapLikeObject } from '../types.js';
import '../_version.js';
/**
* Workbox errors should be thrown with this class.
* This allows use to ensure the type easily in tests,
* helps developers identify errors from workbox
* easily and allows use to optimise error
* messages correctly.
*
* @private
*/
declare class WorkboxError extends Error {
details?: MapLikeObject;
/**
*
* @param {string} errorCode The error code that
* identifies this particular error.
* @param {Object=} details Any relevant arguments
* that will help developers identify issues should
* be added as a key on the context object.
*/
constructor(errorCode: string, details?: MapLikeObject);
}
export { WorkboxError };