Replies: 2 comments 3 replies
-
I believe it's due to the I'm not 100% sure on the reasoning myself, but it could somehow be related to https://github.com/Microsoft/TypeScript/wiki/Breaking-Changes#extending-built-ins-like-error-array-and-map-may-no-longer-work? cc @nickrum as I could be very wrong and way off here. In your first example, if you were to use
|
Beta Was this translation helpful? Give feedback.
-
I had to use the initExceptions function to save the BaseException returned inside the hook |
Beta Was this translation helpful? Give feedback.
-
I tried to create a new class to inherit BaseException, but that didn't work, it still uses INTERNAL_SERVER_ERROR
Not Working
Working
I tried to shift to a new way of inheritance
it works!
I don't understand why this is
Beta Was this translation helpful? Give feedback.
All reactions