We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 68a3cbe commit 72761e8Copy full SHA for 72761e8
src/errors.ts
@@ -40,7 +40,7 @@ export function asErrorLike(error: any): ErrorLike {
40
41
// Tiny wrapper to make it super easy to make custom error classes where .name behaves
42
// correctly, and useful metafields can be easily added.
43
-export abstract class CustomError extends Error {
+export class CustomError extends Error {
44
constructor(message?: string, extras: {
45
code?: string,
46
statusCode?: number,
0 commit comments