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