@NotThreadSafe
public class ExceptionCollection
extends java.lang.Exception
| Constructor and Description |
|---|
ExceptionCollection()
Instantiates a new exception collection.
|
ExceptionCollection(java.util.List<java.lang.Throwable> exceptions)
Instantiates a new exception collection.
|
ExceptionCollection(java.util.List<java.lang.Throwable> exceptions,
boolean fatal)
Instantiates a new exception collection.
|
ExceptionCollection(java.lang.Throwable exception)
Instantiates a new exception collection.
|
ExceptionCollection(java.lang.Throwable exception,
boolean fatal)
Instantiates a new exception collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addException(java.lang.Throwable ex)
Adds an exception to the collection.
|
void |
addException(java.lang.Throwable ex,
boolean fatal)
Adds an exception to the collection.
|
java.util.List<java.lang.Throwable> |
getExceptions()
Get the value of exceptions.
|
java.lang.String |
getMessage()
Returns the error message, including the message from all contained
exceptions.
|
boolean |
isFatal()
Get the value of fatal.
|
void |
printStackTrace(java.io.PrintStream s)
Prints the stack trace.
|
void |
printStackTrace(java.io.PrintWriter s)
Prints the stack trace.
|
void |
setFatal(boolean fatal)
Set the value of fatal.
|
public ExceptionCollection(java.util.List<java.lang.Throwable> exceptions)
exceptions - a list of exceptionspublic ExceptionCollection(java.util.List<java.lang.Throwable> exceptions,
boolean fatal)
exceptions - a list of exceptionsfatal - indicates if any of the exceptions that occurred is fatal -
meaning that no analysis was performed.public ExceptionCollection(java.lang.Throwable exception,
boolean fatal)
exception - a list of exceptionsfatal - indicates if the exception that occurred is fatal - meaning
that no analysis was performed.public ExceptionCollection(java.lang.Throwable exception)
exception - a list of exceptionspublic ExceptionCollection()
public java.util.List<java.lang.Throwable> getExceptions()
public void addException(java.lang.Throwable ex)
ex - the exception to addpublic void addException(java.lang.Throwable ex,
boolean fatal)
ex - the exception to addfatal - flag indicating if this is a fatal errorpublic boolean isFatal()
public void setFatal(boolean fatal)
fatal - new value of fatalpublic void printStackTrace(java.io.PrintWriter s)
printStackTrace in class java.lang.Throwables - the writer to print topublic void printStackTrace(java.io.PrintStream s)
printStackTrace in class java.lang.Throwables - the stream to write the stack trace topublic java.lang.String getMessage()
getMessage in class java.lang.ThrowableCopyright© 2012-21 Jeremy Long. All Rights Reserved.