gov.llnl.babel
Class CollectionException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by gov.llnl.babel.CollectionException
All Implemented Interfaces:
java.io.Serializable

public class CollectionException
extends java.lang.Exception

When parsing a collection of files, it is better to collect all the exceptions until the end instead of bailing out on the first exception. This exception class holds a collection of other exceptions.

See Also:
Serialized Form

Nested Class Summary
static class CollectionException.UriExceptionPair
          This struct exists to hold the (uri, exception) pair that makes up each element of the collection.
 
Constructor Summary
CollectionException(java.lang.String uri, java.lang.Exception ex)
           
 
Method Summary
 void addException(java.lang.String uri, java.lang.Exception ex)
           
 java.lang.String getMessage()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

CollectionException

public CollectionException(java.lang.String uri,
                           java.lang.Exception ex)
Method Detail

addException

public void addException(java.lang.String uri,
                         java.lang.Exception ex)

getMessage

public java.lang.String getMessage()
Overrides:
getMessage in class java.lang.Throwable