org.springframework.integration.message
Class ErrorMessage
java.lang.Object
org.springframework.integration.message.GenericMessage<java.lang.Throwable>
org.springframework.integration.message.ErrorMessage
- All Implemented Interfaces:
- java.io.Serializable, Message<java.lang.Throwable>
public class ErrorMessage
- extends GenericMessage<java.lang.Throwable>
A message implementation that accepts a Throwable
payload.
Once created this object is immutable.
- See Also:
- Serialized Form
Constructor Summary |
ErrorMessage(java.lang.Throwable payload)
|
ErrorMessage(java.lang.Throwable payload,
java.util.Map<java.lang.String,java.lang.Object> headers)
|
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
ErrorMessage
public ErrorMessage(java.lang.Throwable payload)
ErrorMessage
public ErrorMessage(java.lang.Throwable payload,
java.util.Map<java.lang.String,java.lang.Object> headers)