problem response for the given throwable
by taking any ResponseStatus annotation on the exception type or one of the causes into account.NoHandlerFoundExceptions into not-found
problems.ProblemHandling is a composite AdviceTrait that combines all built-in advice traits into a single
interface that makes it easier to use:
@ControllerAdvice
public class ExceptionHandling implements ProblemHandling
Note: Future versions of this class will be extended with additional traits.AuthenticationEntryPoint, AuthenticationFailureHandler and AccessDeniedHandler
that delegates exceptions to Spring WebMVC's HandlerExceptionResolver as defined in WebMvcConfigurationSupport.Copyright © 2015–2023 Zalando SE. All rights reserved.