public class ExceptionMessage extends Object implements Serializable
ExceptionMessage
is used by the DefaultServiceExceptionStrategy
for wrapping an exception with a message to send via an endpointUri.Modifier and Type | Field and Description |
---|---|
protected Map<String,Object> |
properties |
Constructor and Description |
---|
ExceptionMessage(MuleEvent event,
Throwable exception,
String componentName,
URI endpointUri) |
Modifier and Type | Method and Description |
---|---|
void |
addProperties(Map<String,Object> properties)
Adds a map of properties to associated with this message
|
void |
clearProperties()
Removes all properties on this message
|
String |
getComponentName() |
String |
getEndpoint() |
Throwable |
getException() |
Object |
getPayload() |
Map |
getProperties()
Returns a map of all properties on this message
|
Object |
getProperty(String key) |
Date |
getTimeStamp() |
void |
setPayload(Object payload) |
void |
setProperty(String key,
Object value) |
String |
toString() |
public void setPayload(Object payload)
public Object getPayload()
public void addProperties(Map<String,Object> properties)
properties
- the properties add to this messagepublic void clearProperties()
public Map getProperties()
public String getComponentName()
public String getEndpoint()
public Date getTimeStamp()
public Throwable getException()
Copyright © 2003–2016 MuleSoft, Inc.. All rights reserved.