MultiException

Wraps multiple exceptions.

Allows multiple exceptions to be thrown as a single exception.

Constructors

this
this()
Undocumented in source.

Members

Functions

add
void add(Exception e)
Undocumented in source. Be warned that the author may not have intended to support it.
getThrowable
Exception getThrowable(int i)
Undocumented in source. Be warned that the author may not have intended to support it.
getThrowables
List!Exception getThrowables()
Undocumented in source. Be warned that the author may not have intended to support it.
ifExceptionThrow
void ifExceptionThrow()

Throw a multiexception. If this multi exception is empty then no action is taken. If it contains a single exception that is thrown, otherwise the this multi exception is thrown. @exception Exception the Error or Exception if nested is 1, or the MultiException itself if nested is more than 1.

ifExceptionThrowMulti
void ifExceptionThrowMulti()

Throw a multiexception. If this multi exception is empty then no action is taken. If it contains a any exceptions then this multi exception is thrown. @throws MultiException the multiexception if there are nested exception

ifExceptionThrowRuntime
void ifExceptionThrowRuntime()

Throw a Runtime exception. If this multi exception is empty then no action is taken. If it contains a single error or runtime exception that is thrown, otherwise the this multi exception is thrown, wrapped in a runtime onException. @exception Error If this exception contains exactly 1 {@link Error} @exception RuntimeException If this exception contains 1 {@link Exception} but it is not an error, or it contains more than 1 {@link Exception} of any type.

size
int size()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta