public class GridRuntimeException extends RuntimeException
| Constructor and Description |
|---|
GridRuntimeException(String msg)
Constructs runtime grid exception with given message.
|
GridRuntimeException(String msg,
Throwable cause)
Constructs runtime grid exception with given message and cause.
|
GridRuntimeException(Throwable cause)
Creates new runtime grid exception given throwable as a cause and
source of error message.
|
| Modifier and Type | Method and Description |
|---|---|
<T extends Throwable> |
getCause(Class<T> cls)
Gets first exception of given class from
'cause' hierarchy if any. |
String |
getMessage() |
boolean |
hasCause(Class<? extends Throwable>... cls)
Checks if this exception has given class in
'cause' hierarchy. |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic GridRuntimeException(String msg, @Nullable Throwable cause)
msg - Exception message.cause - Exception cause.public GridRuntimeException(Throwable cause)
cause - Non-null throwable cause.public GridRuntimeException(String msg)
msg - Exception message.public boolean hasCause(@Nullable Class<? extends Throwable>... cls)
'cause' hierarchy.cls - Cause class to check (if null, false is returned)..True if one of the causing exception is an instance of passed in class,
false otherwise.@Nullable public <T extends Throwable> T getCause(@Nullable Class<T> cls)
'cause' hierarchy if any.cls - Cause class to get cause (if null, null is returned).null otherwise.public String getMessage()
getMessage in class ThrowableCopyright © 2014. All rights reserved.