org.n52.oxf
Class OXFThrowableCollection

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.n52.oxf.OXFException
              extended by org.n52.oxf.OXFThrowableCollection
All Implemented Interfaces:
Serializable

public class OXFThrowableCollection
extends OXFException

This class can be used to collect several occuring Throwables(/Exceptions). After collecting the throwable, you may use the overriden printStackTrace-methods to print a cumulated stack trace of all ocuured exceptions/throwables.

Author:
Arne Broering
See Also:
Serialized Form

Constructor Summary
OXFThrowableCollection()
           
OXFThrowableCollection(String reason)
           
 
Method Summary
 void addThrowable(Throwable throwable)
           
 Iterator<Throwable> getThrowablesIterator()
           
 boolean isEmpty()
           
 void printStackTrace()
           
 void printStackTrace(PrintStream s)
           
 void printStackTrace(PrintWriter s)
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

OXFThrowableCollection

public OXFThrowableCollection()

OXFThrowableCollection

public OXFThrowableCollection(String reason)
Method Detail

addThrowable

public void addThrowable(Throwable throwable)
Parameters:
exception -

isEmpty

public boolean isEmpty()
Returns:

getThrowablesIterator

public Iterator<Throwable> getThrowablesIterator()
Returns:

printStackTrace

public void printStackTrace()
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintStream s)
Overrides:
printStackTrace in class Throwable

printStackTrace

public void printStackTrace(PrintWriter s)
Overrides:
printStackTrace in class Throwable


Copyright © 2012-2013 52north.org. All Rights Reserved.