public class ErrorMessage extends GenericMessage<Throwable>
GenericMessage
with a Throwable
payload.MessageBuilder
,
Serialized FormConstructor and Description |
---|
ErrorMessage(Throwable payload)
Create a new message with the given payload.
|
ErrorMessage(Throwable payload,
Map<String,Object> headers)
Create a new message with the given payload and headers.
|
ErrorMessage(Throwable payload,
MessageHeaders headers)
A constructor with the
MessageHeaders instance to use. |
equals, getHeaders, getPayload, hashCode, toString
public ErrorMessage(Throwable payload)
payload
- the message payload (never null
)public ErrorMessage(Throwable payload, Map<String,Object> headers)
payload
- the message payload (never null
)headers
- message headers to use for initializationpublic ErrorMessage(Throwable payload, MessageHeaders headers)
MessageHeaders
instance to use.
Note: the given MessageHeaders
instance
is used directly in the new message, i.e. it is not copied.
payload
- the message payload (never null
)headers
- message headers