インターフェース ErrorAttributes

すべての既知の実装クラス:
DefaultErrorAttributes

public interface ErrorAttributes
ログに記録したり、ユーザーに提示したりできるエラー属性へのアクセスを提供します。
導入:
2.0.0
作成者:
Phillip Webb, Scott Frederick
関連事項:
  • メソッドの詳細

    • getErrorAttributes

      default MapSE<StringSE,ObjectSE> getErrorAttributes(WebRequest webRequest, ErrorAttributeOptions options)
      エラー属性の MapSE を返します。マップは、エラーページ ModelAndView のモデルとして使用するか、@ResponseBody として返すことができます。
      パラメーター:
      webRequest - ソースリクエスト
      options - エラー属性コンテンツのオプション
      戻り値:
      エラー属性のマップ
      導入:
      2.3.0
    • getError

      ThrowableSE getError(WebRequest webRequest)
      エラーの根本的な原因を返すか、エラーを抽出できない場合は null を返します。
      パラメーター:
      webRequest - ソースリクエスト
      戻り値:
      エラーまたは null の原因となった ExceptionSE