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.T
- Type of the causing exception.cls
- Cause class to get cause (if null
, null
is returned).null
otherwise.
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023