How can I use the built-in custom errors?
Open
- Dominant language
- TypeScript
- Stars
- 62
- Forks
- 11
- PR merge metrics
- No merged PRs in 30d
Description
I am rather new to NodeJS, so forgive me for any basic errors.
That said, I've been trying to see if a thrown error is of type `AttachmentNotFoundError`. However, I don't think this error type is actually exported anywhere, and thus any attempt to use `instanceof AttachmentNotFoundError` results in `TypeError: Right-hand side of 'instanceof' is not an object` or `ReferenceError: AttachmentNotFoundError is not defined`.
Is there any way I can import this from `src/types/errors`? Thanks!
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.