インターフェース ErrorAttributes
- すべての既知の実装クラス:
- DefaultErrorAttributes
public interface ErrorAttributes
 ログに記録したり、ユーザーに提示したりできるエラー属性へのアクセスを提供します。
- 導入:
- 2.0.0
- 作成者:
- Brian Clozel, Scott Frederick
- 関連事項:
- メソッドのサマリー修飾子と型メソッド説明- getError- (ServerRequest request) エラーの根本的な原因を返すか、エラーを抽出できない場合は- nullを返します。- getErrorAttributes- (ServerRequest request, ErrorAttributeOptions options) エラー属性の- MapSE を返します。- void- storeErrorInformation- (ThrowableSE error, ServerWebExchange exchange) 指定されたエラー情報を現在の- ServerWebExchangeに保存します。
- メソッドの詳細- getErrorAttributesdefault MapSE<StringSE,- ObjectSE> getErrorAttributes- (ServerRequest request, ErrorAttributeOptions options) エラー属性の- MapSE を返します。マップは、エラーページのモデルとして使用するか、- ServerResponse本文として返すことができます。- パラメーター:
- request- ソースリクエスト
- options- エラー属性コンテンツのオプション
- 戻り値:
- エラー属性のマップ
 
- getErrorエラーの根本的な原因を返すか、エラーを抽出できない場合は- nullを返します。- パラメーター:
- request- ソース ServerRequest
- 戻り値:
-  エラーまたは nullの原因となったExceptionSE
 
- storeErrorInformation指定されたエラー情報を現在の- ServerWebExchangeに保存します。- パラメーター:
- error- エラーの原因となった- ExceptionSE
- exchange- ソース交換