public class DefaultErrorAttributes extends ObjectSE implements ErrorAttributes
ErrorAttributes
のデフォルト実装。可能な場合、次の属性を提供します。BindingResult
例外からの ObjectError
ErrorAttributes
コンストラクターと説明 |
---|
DefaultErrorAttributes() "exception" 属性を含まない新しい DefaultErrorAttributes インスタンスを作成します。 |
DefaultErrorAttributes(boolean includeException) 新しい DefaultErrorAttributes インスタンスを作成します。 |
修飾子と型 | メソッドと説明 |
---|---|
ThrowableSE | getError(org.springframework.web.reactive.function.server.ServerRequest request) エラーの根本的な原因を返すか、エラーを抽出できない場合は null を返します。 |
MapSE<StringSE, ObjectSE> | getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request, boolean includeStackTrace) エラー属性の Map SE を返します。 |
void | storeErrorInformation(ThrowableSE error, org.springframework.web.server.ServerWebExchange exchange) 指定されたエラー情報を現在の ServerWebExchange に保存します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public DefaultErrorAttributes()
DefaultErrorAttributes
インスタンスを作成します。public DefaultErrorAttributes(boolean includeException)
DefaultErrorAttributes
インスタンスを作成します。includeException
- "exception" 属性を含めるかどうか public MapSE<StringSE,ObjectSE> getErrorAttributes(org.springframework.web.reactive.function.server.ServerRequest request, boolean includeStackTrace)
ErrorAttributes
Map
SE を返します。マップは、エラーページのモデルとして使用するか、ServerResponse
本体として返すことができます。ErrorAttributes
の getErrorAttributes
request
- ソースリクエスト includeStackTrace
- スタックトレース要素を含める必要がある場合 public ThrowableSE getError(org.springframework.web.reactive.function.server.ServerRequest request)
ErrorAttributes
null
を返します。ErrorAttributes
の getError
request
- ソース ServerRequestnull
の原因となった Exception
SE public void storeErrorInformation(ThrowableSE error, org.springframework.web.server.ServerWebExchange exchange)
ErrorAttributes
ServerWebExchange
に保存します。ErrorAttributes
の storeErrorInformation
error
- エラーの原因となった Exception
SEexchange
- ソース交換 Copyright © 2017 Pivotal Software, Inc.. All rights reserved.