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 SummaryModifier and TypeMethodDescriptionvoidhandleError(ProblemDetail detail, @Nullable ErrorResponse errorResponse) Handle the givenProblemDetailthat's going to be rendered, and theErrorResponseit originates from, if applicable.
- 
Method Details- 
handleErrorHandle the givenProblemDetailthat's going to be rendered, and theErrorResponseit originates from, if applicable.- Parameters:
- detail- the- ProblemDetailto be rendered
- errorResponse- the- ErrorResponse, or- nullif there isn't one
 
 
-