public class IgniteException extends RuntimeException
Constructor and Description |
---|
IgniteException()
Create empty exception.
|
IgniteException(String msg)
Creates new exception with given error message.
|
IgniteException(String msg,
@Nullable Throwable cause)
Creates new exception with given error message and optional nested exception.
|
IgniteException(Throwable cause)
Creates new grid exception with given throwable as a cause and
source of error message.
|
Modifier and Type | Method and Description |
---|---|
<T extends Throwable> |
getCause(@Nullable 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, setStackTrace
public IgniteException()
public IgniteException(String msg)
msg
- Error message.public IgniteException(Throwable cause)
cause
- Non-null throwable cause.@SafeVarargs public final boolean hasCause(@Nullable Class<? extends Throwable>... cls)
'cause'
hierarchy.cls
- Cause classes to check (if null
or empty, false
is returned).True
if one of the causing exception is an instance of passed in classes,
false
otherwise.@Nullable public <T extends Throwable> T getCause(@Nullable @Nullable Class<T> cls)
'cause'
hierarchy if any.cls
- Cause class to get cause (if null
, null
is returned).null
otherwise.
GridGain In-Memory Computing Platform : ver. 8.9.15 Release Date : December 3 2024