public class IgniteIllegalStateException extends IllegalStateException
Constructor and Description |
---|
IgniteIllegalStateException(String msg)
Constructs exception with given message.
|
IgniteIllegalStateException(String msg,
@Nullable Throwable cause)
Constructs exception with given message and cause.
|
IgniteIllegalStateException(Throwable cause)
Creates exception 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 IgniteIllegalStateException(String msg, @Nullable @Nullable Throwable cause)
msg
- Exception message.cause
- Exception cause.public IgniteIllegalStateException(Throwable cause)
cause
- Non-null throwable cause.public IgniteIllegalStateException(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 @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