パッケージ org.springframework.web
インターフェース ErrorResponse.Interceptor
- 含まれているインターフェース:
- ErrorResponse
public static interface ErrorResponse.Interceptor
RFC-9457
ProblemDetail
レスポンスがレンダリングされる前にアクションを実行するコールバック。- 導入:
- 6.2
- 作成者:
- Rossen Stoyanchev
メソッドのサマリー
修飾子と型メソッド説明void
handleError
(ProblemDetail detail, ErrorResponse errorResponse) レンダリングされる指定されたProblemDetail
と、該当する場合はその元のErrorResponse
を処理します。
メソッドの詳細
handleError
レンダリングされる指定されたProblemDetail
と、該当する場合はその元のErrorResponse
を処理します。- パラメーター:
detail
- レンダリングされるProblemDetail
errorResponse
-ErrorResponse
、またはそれがない場合はnull