Skip to content

Commit 72761e8

Browse files
committed
Make CustomError non-abstract for easy simple usages
1 parent 68a3cbe commit 72761e8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/errors.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export function asErrorLike(error: any): ErrorLike {
4040

4141
// Tiny wrapper to make it super easy to make custom error classes where .name behaves
4242
// correctly, and useful metafields can be easily added.
43-
export abstract class CustomError extends Error {
43+
export class CustomError extends Error {
4444
constructor(message?: string, extras: {
4545
code?: string,
4646
statusCode?: number,

0 commit comments

Comments
 (0)