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'd like to have the ability to handle specific exceptions to specific Controllers, as we can do without the library by having a method annotated with @ExceptionHandler on a given Controller
Context
Instead of handing all exception types into single class/controller advice, having it handled on appropriate controllers for exceptions which are specific for a controller, so not general one!
Your Environment
Version used: 0.26.2
Link to your project: closed source
The text was updated successfully, but these errors were encountered:
You can create a ControllerAdvice that is limited to a specific controller, with assignableTypes. Give it a higher order than your your other, general advice traits (like ProblemHandling).
You can create a ControllerAdvice that is limited to a specific controller, with assignableTypes. Give it a higher order than your your other, general advice traits (like ProblemHandling).
Detailed Description
I'd like to have the ability to handle specific exceptions to specific Controllers, as we can do without the library by having a method annotated with
@ExceptionHandler
on a given ControllerContext
Instead of handing all exception types into single class/controller advice, having it handled on appropriate controllers for exceptions which are specific for a controller, so not general one!
Your Environment
The text was updated successfully, but these errors were encountered: