@NotThreadSafe public class ExceptionCollection extends Exception
| Constructor and Description |
|---|
ExceptionCollection()
Instantiates a new exception collection.
|
ExceptionCollection(List<Throwable> exceptions)
Instantiates a new exception collection.
|
ExceptionCollection(List<Throwable> exceptions,
boolean fatal)
Instantiates a new exception collection.
|
ExceptionCollection(Throwable exception)
Instantiates a new exception collection.
|
ExceptionCollection(Throwable exception,
boolean fatal)
Instantiates a new exception collection.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addException(Throwable ex)
Adds an exception to the collection.
|
void |
addException(Throwable ex,
boolean fatal)
Adds an exception to the collection.
|
List<Throwable> |
getExceptions()
Get the value of exceptions.
|
String |
getMessage()
Returns the error message, including the message from all contained
exceptions.
|
boolean |
isFatal()
Get the value of fatal.
|
void |
printStackTrace(PrintStream s)
Prints the stack trace.
|
void |
printStackTrace(PrintWriter s)
Prints the stack trace.
|
void |
setFatal(boolean fatal)
Set the value of fatal.
|
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, setStackTrace, toStringpublic ExceptionCollection(List<Throwable> exceptions)
exceptions - a list of exceptionspublic ExceptionCollection(List<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(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(Throwable exception)
exception - a list of exceptionspublic ExceptionCollection()
public List<Throwable> getExceptions()
public void addException(Throwable ex)
ex - the exception to addpublic void addException(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(PrintWriter s)
printStackTrace in class Throwables - the writer to print topublic void printStackTrace(PrintStream s)
printStackTrace in class Throwables - the stream to write the stack trace topublic String getMessage()
getMessage in class ThrowableCopyright © 2012–2020 OWASP. All rights reserved.