org.mule.message
Class ExceptionMessage
java.lang.Object
org.mule.message.ExceptionMessage
- All Implemented Interfaces:
- Serializable
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.
- See Also:
- Serialized Form
properties
protected Map<String,Object> properties
ExceptionMessage
public ExceptionMessage(MuleEvent event,
Throwable exception,
String componentName,
URI endpointUri)
setPayload
public void setPayload(Object payload)
getPayload
public Object getPayload()
- Returns:
- the current message
addProperties
public void addProperties(Map<String,Object> properties)
- Adds a map of properties to associated with this message
- Parameters:
properties
- the properties add to this message
clearProperties
public void clearProperties()
- Removes all properties on this message
getProperties
public Map getProperties()
- Returns a map of all properties on this message
- Returns:
- a map of all properties on this message
setProperty
public void setProperty(String key,
Object value)
getProperty
public Object getProperty(String key)
getComponentName
public String getComponentName()
getEndpoint
public String getEndpoint()
getTimeStamp
public Date getTimeStamp()
getException
public Throwable getException()
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.