public class DefaultErrorMessageStrategy extends ObjectSE implements ErrorMessageStrategy
AttributeAccessor に ErrorMessageUtils.INPUT_MESSAGE_CONTEXT_KEY 属性がある場合、元のメッセージとともにエラーメッセージを生成する単純な ErrorMessageStrategy 実装。それ以外の場合は、throwable を payload として使用するプレーンな ErrorMessage。ErrorMessageUtils| コンストラクターと説明 |
|---|
DefaultErrorMessageStrategy() |
| 修飾子と型 | メソッドと説明 |
|---|---|
ErrorMessage | buildErrorMessage(ThrowableSE throwable, AttributeAccessor attributes) エラーメッセージを作成します。 |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSEpublic ErrorMessage buildErrorMessage(ThrowableSE throwable, @Nullable AttributeAccessor attributes)
ErrorMessageStrategyErrorMessageStrategy の buildErrorMessage throwable - ペイロード。attributes - 属性。