ErrorMessage(payload: Throwable)
Create a new message with the given payload.
payload - the message payload (never null)
ErrorMessage(payload: Throwable, headers: MutableMap<String, Any>)
Create a new message with the given payload and headers. The content of the given header map is copied.
payload - the message payload (never null)
headers - message headers to use for initialization
ErrorMessage(payload: Throwable, headers: MessageHeaders)
A constructor with the 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)
ErrorMessage(payload: Throwable, originalMessage: Message<*>)
Create a new message with the given payload and original message.
payload - the message payload (never null)
originalMessage - the original message (if present) at the point in the stack where the ErrorMessage was created
Since
5.0
ErrorMessage(payload: Throwable, headers: MutableMap<String, Any>, originalMessage: Message<*>)
Create a new message with the given payload, headers and original message. The content of the given header map is copied.
payload - the message payload (never null)
headers - message headers to use for initialization
originalMessage - the original message (if present) at the point in the stack where the ErrorMessage was created
Since
5.0
ErrorMessage(payload: Throwable, headers: MessageHeaders, originalMessage: Message<*>)
Create a new message with the payload, MessageHeaders and original message.
Note: the given MessageHeaders instance is used directly in the new message, i.e. it is not copied.
payload - the message payload (never null)
originalMessage - the original message (if present) at the point in the stack where the ErrorMessage was created
Since
5.0