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(Event event,
Throwable exception,
String componentName,
String connectorName) |
| 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 |
getConnectorName() |
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 getConnectorName()
public Date getTimeStamp()
public Throwable getException()
Copyright © 2003–2017 MuleSoft, Inc.. All rights reserved.