org.mule.endpoint.inbound
Class InboundExceptionDetailsMessageProcessor
java.lang.Object
org.mule.endpoint.inbound.InboundExceptionDetailsMessageProcessor
- All Implemented Interfaces:
- MessageProcessor
public class InboundExceptionDetailsMessageProcessor
- extends Object
- implements MessageProcessor
Sets error message properties as specified by the transport based on the exception
type of the exception payload. This mechanism uses a transport properties file in
the META-INF/services/org/mule/config directory called
mule-exception-codes.properties. This property file maps the fully qualified class
names of exceptions to the value of the property that should be set. The name of
the property is defined by the error.code.property property in the same properties
file.
connector
protected Connector connector
InboundExceptionDetailsMessageProcessor
public InboundExceptionDetailsMessageProcessor(Connector connector)
process
public MuleEvent process(MuleEvent event)
throws MuleException
- Description copied from interface:
MessageProcessor
- Invokes the MessageProcessor.
- Specified by:
process
in interface MessageProcessor
- Parameters:
event
- MuleEvent to be processed
- Returns:
- optional response MuleEvent
- Throws:
MuleException
setExceptionDetails
protected void setExceptionDetails(MuleMessage message,
Connector connector,
Throwable exception)
- This method is used to set any additional and possibly transport specific
information on the return message where it has an exception payload.
- Parameters:
message
- exception
-
toString
public String toString()
- Overrides:
toString
in class Object
Copyright © 2003-2012 MuleSoft, Inc.. All Rights Reserved.