Package org.springframework.web
Interface ErrorResponse.Interceptor
- Enclosing interface:
- ErrorResponse
public static interface ErrorResponse.Interceptor
Callback to perform an action before an RFC-9457
ProblemDetail
response is rendered.- Since:
- 6.2
- Author:
- Rossen Stoyanchev
-
Method Summary
Modifier and TypeMethodDescriptionvoid
handleError
(ProblemDetail detail, ErrorResponse errorResponse) Handle the givenProblemDetail
that's going to be rendered, and theErrorResponse
it originates from, if applicable.
-
Method Details
-
handleError
Handle the givenProblemDetail
that's going to be rendered, and theErrorResponse
it originates from, if applicable.- Parameters:
detail
- theProblemDetail
to be renderederrorResponse
- theErrorResponse
, ornull
if there isn't one
-