Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How can I use the built-in custom errors? #71

Open
Ptomerty opened this issue Apr 8, 2020 · 0 comments
Open

How can I use the built-in custom errors? #71

Ptomerty opened this issue Apr 8, 2020 · 0 comments

Comments

@Ptomerty
Copy link

Ptomerty commented Apr 8, 2020

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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant