@Order(value=-2147483648) public class DefaultErrorAttributes extends ObjectSE implements ErrorAttributes, HandlerExceptionResolver, Ordered
ErrorAttributes
のデフォルト実装。可能な場合、次の属性を提供します。BindingResult
例外からの ObjectError
(設定されている場合)ErrorAttributes
ERROR_ATTRIBUTE
HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
コンストラクターと説明 |
---|
DefaultErrorAttributes() |
修飾子と型 | メソッドと説明 |
---|---|
ThrowableSE | getError(WebRequest webRequest) エラーの根本的な原因を返すか、エラーを抽出できない場合は null を返します。 |
MapSE<StringSE, ObjectSE> | getErrorAttributes(WebRequest webRequest, ErrorAttributeOptions options) エラー属性の Map SE を返します。 |
protected StringSE | getMessage(WebRequest webRequest, ThrowableSE error) message エラー属性の値として含まれるメッセージを返します。 |
int | getOrder() |
ModelAndView | resolveException(HttpServletRequestEE request, HttpServletResponseEE response, ObjectSE handler, ExceptionSE ex) |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
public ModelAndView resolveException(HttpServletRequestEE request, HttpServletResponseEE response, ObjectSE handler, ExceptionSE ex)
HandlerExceptionResolver
の resolveException
public MapSE<StringSE,ObjectSE> getErrorAttributes(WebRequest webRequest, ErrorAttributeOptions options)
ErrorAttributes
ErrorAttributes
の getErrorAttributes
webRequest
- ソースリクエスト options
- エラー属性コンテンツのオプション protected StringSE getMessage(WebRequest webRequest, ThrowableSE error)
message
エラー属性の値として含まれるメッセージを返します。デフォルトでは、返されるメッセージは空ではない次の最初のものです。RequestDispatcher.ERROR_MESSAGE
EE リクエスト属性の値。error
のメッセージ。No message available
.webRequest
- 現在のリクエスト error
- 現在のエラー(ある場合)public ThrowableSE getError(WebRequest webRequest)
ErrorAttributes
null
を返します。ErrorAttributes
の getError
webRequest
- ソースリクエスト null
の原因となった Exception
SE