Bouncy Castle Cryptography Library 1.85

org.bouncycastle.util
Class AggregateRuntimeException

java.lang.Object
  extended byjava.lang.Throwable
      extended byjava.lang.Exception
          extended byjava.lang.RuntimeException
              extended byorg.bouncycastle.util.AggregateRuntimeException
All Implemented Interfaces:
java.io.Serializable

public class AggregateRuntimeException
extends java.lang.RuntimeException

A RuntimeException that carries several underlying exceptions rather than a single cause - for example the complete set of problems found when reviewing a malformed structure, where surfacing only the first would lose information.

See Also:
Serialized Form

Constructor Summary
AggregateRuntimeException(java.lang.String message, java.util.List exceptions)
          Base constructor.
 
Method Summary
 java.util.List getExceptions()
          Return the exceptions that make up this aggregate.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

AggregateRuntimeException

public AggregateRuntimeException(java.lang.String message,
                                 java.util.List exceptions)
Base constructor.

Parameters:
message - a message concerning the exception.
exceptions - the underlying exceptions making up this aggregate (may be null or empty).
Method Detail

getExceptions

public java.util.List getExceptions()
Return the exceptions that make up this aggregate.

Returns:
an unmodifiable list of the aggregated exceptions, in the order supplied.

Bouncy Castle Cryptography Library 1.85