public class GridIllegalStateException extends IllegalStateException
| Constructor and Description |
|---|
GridIllegalStateException(String msg)
Constructs exception with given message.
|
GridIllegalStateException(String msg,
Throwable cause)
Constructs exception with given message and cause.
|
GridIllegalStateException(Throwable cause)
Creates 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. |
boolean |
hasCause(Class<? extends Throwable>... cls)
Checks if this exception has given class in
'cause' hierarchy. |
String |
toString() |
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTracepublic GridIllegalStateException(String msg, @Nullable Throwable cause)
msg - Exception message.cause - Exception cause.public GridIllegalStateException(Throwable cause)
cause - Non-null throwable cause.public GridIllegalStateException(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.Copyright © 2014. All rights reserved.