org.mule.transport.tcp
Class RewriteMessageExceptionPolicy

java.lang.Object
  extended by org.mule.transport.tcp.RewriteMessageExceptionPolicy
All Implemented Interfaces:
NextMessageExceptionPolicy

public class RewriteMessageExceptionPolicy
extends Object
implements NextMessageExceptionPolicy

An exception policy that rewrites the exception

Since:
2.2.6

Constructor Summary
RewriteMessageExceptionPolicy()
           
 
Method Summary
 Object handleException(Exception exception, TcpMessageReceiver receiver, TcpMessageReceiver.TcpWorker worker)
          Handles the exception thrown while processing the next message
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RewriteMessageExceptionPolicy

public RewriteMessageExceptionPolicy()
Method Detail

handleException

public Object handleException(Exception exception,
                              TcpMessageReceiver receiver,
                              TcpMessageReceiver.TcpWorker worker)
                       throws Exception
Handles the exception thrown while processing the next message

Specified by:
handleException in interface NextMessageExceptionPolicy
Parameters:
exception - the exception thrown
receiver - the tcp message receiver
Returns:
the result of processing the exception
Throws:
Exception


Copyright © 2003-2010 MuleSoft, Inc.. All Rights Reserved.