You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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!
The text was updated successfully, but these errors were encountered:
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 useinstanceof AttachmentNotFoundError
results inTypeError: Right-hand side of 'instanceof' is not an object
orReferenceError: AttachmentNotFoundError is not defined
.Is there any way I can import this from
src/types/errors
? Thanks!The text was updated successfully, but these errors were encountered: