public class GridSpiMultiException extends GridSpiException
| Constructor and Description |
|---|
GridSpiMultiException(String msg)
Creates new exception with given error message.
|
GridSpiMultiException(String msg,
Throwable cause)
Creates new exception with given error message and optional nested exception.
|
GridSpiMultiException(String msg,
Throwable cause,
Collection<Throwable> nestedCauses)
Creates new exception with given error message and optional nested exception.
|
GridSpiMultiException(Throwable cause)
Creates new grid exception with given throwable as a cause and
source of error message.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Throwable cause)
Adds a new cause for multi-exception.
|
List<Throwable> |
nestedCauses()
Gets nested causes for this multi-exception.
|
void |
printStackTrace(PrintStream s) |
getCause, getMessage, getOriginalMessage, hasCause, toStringaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTracepublic GridSpiMultiException(String msg)
msg - Error message.public GridSpiMultiException(Throwable cause)
cause - Non-null throwable cause.public GridSpiMultiException(String msg, @Nullable Throwable cause)
msg - Error message.cause - Optional nested exception (can be null).public GridSpiMultiException(String msg, @Nullable Throwable cause, @Nullable Collection<Throwable> nestedCauses)
msg - Error message.cause - Optional nested exception (can be null).nestedCauses - Optional collection of nested causes.public void add(Throwable cause)
cause - Cause to add.public List<Throwable> nestedCauses()
public void printStackTrace(PrintStream s)
printStackTrace in class ThrowableCopyright © 2014. All rights reserved.