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 TypeMethodDescriptionvoidhandleError(ProblemDetail detail, ErrorResponse errorResponse) Handle the givenProblemDetailthat's going to be rendered, and theErrorResponseit originates from, if applicable. 
- 
Method Details
- 
handleError
Handle the givenProblemDetailthat's going to be rendered, and theErrorResponseit originates from, if applicable.- Parameters:
 detail- theProblemDetailto be renderederrorResponse- theErrorResponse, ornullif there isn't one
 
 -