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