{"version":3,"sources":["../src/library/FetchError.ts"],"sourcesContent":["/**\n * An error thrown when the internal fetcher fails.\n */\nexport class FetchError extends Error {\n\t/**\n\t * Covers any additional properties that may be added to an error.\n\t */\n\t[key: string]: any;\n\t/**\n\t * The message associated with the error.\n\t */\n\tmessage!: string;\n\n\t/**\n\t * Constructor.\n\t *\n\t * @param {string | Error} options.error - The error message or object detected.\n\t */\n\tconstructor(options: { error: string | Error }) {\n\t\tsuper();\n\n\t\tconst error = options.error;\n\t\tif (typeof error === \"string\") {\n\t\t\tthis.message = error;\n\t\t} else {\n\t\t\tObject.getOwnPropertyNames(error).forEach((key) => {\n\t\t\t\tthis[key] = error[key as keyof typeof error];\n\t\t\t});\n\t\t}\n\t}\n}\n"],"mappings":";AAGO,IAAM,aAAN,cAAyB,MAAM;AAAA;AAAA;AAAA;AAAA,EAQrC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAOA,YAAY,SAAoC;AAC/C,UAAM;AAEN,UAAM,QAAQ,QAAQ;AACtB,QAAI,OAAO,UAAU,UAAU;AAC9B,WAAK,UAAU;AAAA,IAChB,OAAO;AACN,aAAO,oBAAoB,KAAK,EAAE,QAAQ,CAAC,QAAQ;AAClD,aAAK,GAAG,IAAI,MAAM,GAAyB;AAAA,MAC5C,CAAC;AAAA,IACF;AAAA,EACD;AACD;","names":[]}