@API(status=STABLE) public interface NoHandlerFoundAdviceTrait extends AdviceTrait
NoHandlerFoundExceptions into not-found
problems.
Note: This requires DispatcherServlet.setThrowExceptionIfNoHandlerFound(boolean) being set
to true.
NoHandlerFoundException,
Status.NOT_FOUND,
DispatcherServlet.setThrowExceptionIfNoHandlerFound(boolean)| Modifier and Type | Method and Description |
|---|---|
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> |
handleNoHandlerFound(org.springframework.web.servlet.NoHandlerFoundException exception,
org.springframework.web.context.request.NativeWebRequest request) |
create, create, create, create, create, create, create, create, create, fallback, log, negotiate, processcreateStackTrace, isCausalChainsEnabled, prepare, process, resolveResponseStatus, toProblem, toProblem, toProblem@API(status=INTERNAL)
@ExceptionHandler
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleNoHandlerFound(org.springframework.web.servlet.NoHandlerFoundException exception,
org.springframework.web.context.request.NativeWebRequest request)
Copyright © 2015–2020 Zalando SE. All rights reserved.