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
Tl;dr: SecurityError should be exported from the package
Howdy!
My SecurityHandler will throw different errors based on what went wrong, and I'd like to be able to access SecurityError.errors in my ErrorHandler. Since the ErrorHandler does not know which variety of error it is handling, I'd like to be able to check whether a given error is an instance of a SecurityError thrown by fastify-openapi-glue before attempting to access properties of SecurityError.
Currently, SecurityError is exported from securityHandler.js, but is not exported from the package, so I cannot access it in my code. It would be great if this error could be exported from the package.
Thanks!
The text was updated successfully, but these errors were encountered:
Tl;dr: SecurityError should be exported from the package
Howdy!
My
SecurityHandler
will throw different errors based on what went wrong, and I'd like to be able to accessSecurityError.errors
in myErrorHandler
. Since theErrorHandler
does not know which variety of error it is handling, I'd like to be able to check whether a given error is an instance of aSecurityError
thrown byfastify-openapi-glue
before attempting to access properties ofSecurityError
.Currently,
SecurityError
is exported fromsecurityHandler.js
, but is not exported from the package, so I cannot access it in my code. It would be great if this error could be exported from the package.Thanks!
The text was updated successfully, but these errors were encountered: