public class ErrorMessage extends GenericMessage<java.lang.Throwable>
GenericMessage
with a Throwable
payload.MessageBuilder
,
Serialized FormConstructor and Description |
---|
ErrorMessage(java.lang.Throwable payload)
Create a new message with the given payload.
|
ErrorMessage(java.lang.Throwable payload,
java.util.Map<java.lang.String,java.lang.Object> headers)
Create a new message with the given payload and headers.
|
ErrorMessage(java.lang.Throwable payload,
MessageHeaders headers)
A constructor with the
MessageHeaders instance to use. |
equals, getHeaders, getPayload, hashCode, toString
public ErrorMessage(java.lang.Throwable payload)
payload
- the message payload (never null
)public ErrorMessage(java.lang.Throwable payload, java.util.Map<java.lang.String,java.lang.Object> headers)
payload
- the message payload (never null
)headers
- message headers to use for initializationpublic ErrorMessage(java.lang.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