パッケージ 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

      void handleError(ProblemDetail detail, @Nullable ErrorResponse errorResponse)
      レンダリングされる指定された ProblemDetail と、該当する場合はその元の ErrorResponse を処理します。
      パラメーター:
      detail - レンダリングされる ProblemDetail 
      errorResponse - ErrorResponse、またはそれがない場合は null