インターフェース ErrorAttributes

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

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

    • getErrorAttributes

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

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

      void storeErrorInformation(ThrowableSE error, ServerWebExchange exchange)
      指定されたエラー情報を現在の ServerWebExchange に保存します。
      パラメーター:
      error - エラーの原因となった ExceptionSE
      exchange - ソース交換