org.jph.channels.process
Class ThrowingProcessExceptionHandler<M>

java.lang.Object
  extended by org.jph.channels.process.ThrowingProcessExceptionHandler<M>
All Implemented Interfaces:
ProcessExceptionHandler<M>

public final class ThrowingProcessExceptionHandler<M>
extends java.lang.Object
implements ProcessExceptionHandler<M>

The ThrowingProcessExceptionHandler is an ProcessExceptionHandler that throws a RuntimeException if something went wrong while processing a message.

Explain: when to use it. What should and could be done with a RuntimeException? It this class at all usefull?

Author:
Peter Veentjer.

Constructor Summary
ThrowingProcessExceptionHandler()
           
 
Method Summary
 void handleError(ProcessingOutputChannel channel, M msg, java.lang.Exception ex)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ThrowingProcessExceptionHandler

public ThrowingProcessExceptionHandler()
Method Detail

handleError

public void handleError(ProcessingOutputChannel channel,
                        M msg,
                        java.lang.Exception ex)
Specified by:
handleError in interface ProcessExceptionHandler<M>


Copyright © 2005 Anchormen. All Rights Reserved.