biz.hammurapi.util
Class AccumulatingExceptionSink

java.lang.Object
  extended by biz.hammurapi.util.AccumulatingExceptionSink
All Implemented Interfaces:
ExceptionSink

public class AccumulatingExceptionSink
extends java.lang.Object
implements ExceptionSink

Version:
$Revision: 1.1 $
Author:
Pavel Vlasov

Nested Class Summary
 class AccumulatingExceptionSink.Entry
           
 
Constructor Summary
AccumulatingExceptionSink()
           
 
Method Summary
 void consume(java.lang.Object source, java.lang.Exception e)
           
 void dump()
          Invokes printStackTrace() for all accumulated exceptions
 java.util.List getExceptions()
           
 void reset()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AccumulatingExceptionSink

public AccumulatingExceptionSink()
Method Detail

consume

public void consume(java.lang.Object source,
                    java.lang.Exception e)
Specified by:
consume in interface ExceptionSink

getExceptions

public java.util.List getExceptions()

reset

public void reset()

dump

public void dump()
Invokes printStackTrace() for all accumulated exceptions



Copyright © 2003 Hammurapi Group. All Rights Reserved.