public interface NoHandlerFoundAdviceTrait extends AdviceTrait
NoHandlerFoundExceptions into not-found
problems.
Note: This requires DispatcherServlet.setThrowExceptionIfNoHandlerFound(boolean) being set
to true.
NoHandlerFoundException,
Response.Status.NOT_FOUND,
DispatcherServlet.setThrowExceptionIfNoHandlerFound(boolean)NOT_ACCEPTABLE| 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, entity, entity, isCausalChainsEnabled, negotiate, toProblem@ExceptionHandler
default org.springframework.http.ResponseEntity<org.zalando.problem.Problem> handleNoHandlerFound(org.springframework.web.servlet.NoHandlerFoundException exception,
org.springframework.web.context.request.NativeWebRequest request)
throws org.springframework.web.HttpMediaTypeNotAcceptableException
org.springframework.web.HttpMediaTypeNotAcceptableExceptionCopyright © 2015–2016 Zalando SE. All rights reserved.