@FunctionalInterfaceSE public interface ErrorMessageStrategy
Throwable
SE および AttributeAccessor
をコンテキストとして基づいて ErrorMessage
を構築するための戦略。Throwable payload
は通常 MessagingException
であり、failedMessage
プロパティを使用してエラーの原因を特定できます。
この戦略は、RetryContext
アクセス用の ErrorMessageSendingRecoverer
に使用できます。
修飾子と型 | メソッドと説明 |
---|---|
ErrorMessage | buildErrorMessage(ThrowableSE payload, AttributeAccessor attributes) エラーメッセージを作成します。 |
ErrorMessage buildErrorMessage(ThrowableSE payload, @Nullable AttributeAccessor attributes)
payload
- ペイロード。attributes
- 属性。