#Guard and CustomExceptionClass

1 messages · Page 1 of 1 (latest)

wispy vale
#

Hello there,

I have a simple controller for /test route
This controller use a filters and a guard
This guard call a service function
This service throw multiple CustomExceptionClass (extends HttpException oc)
So the guard trace an Exception. But it's a ForbiddenException type and not CustomException type

If possible, how can i make my guard to work with CustomExceptionClass please ?

have a nice day /D

severe bramble
#

Can you show the related guard and service code?