Package org.apache.ignite
Class IgniteIllegalStateException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- java.lang.IllegalStateException
-
- org.apache.ignite.IgniteIllegalStateException
-
- All Implemented Interfaces:
Serializable
public class IgniteIllegalStateException extends IllegalStateException
This exception indicates the ignite access in invalid state.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor 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.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Throwable>
TgetCause(@Nullable Class<T> cls)Gets first exception of given class from'cause'hierarchy if any.booleanhasCause(@Nullable Class<? extends Throwable>... cls)Checks if this exception has given class in'cause'hierarchy.StringtoString()-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
IgniteIllegalStateException
public IgniteIllegalStateException(String msg, @Nullable @Nullable Throwable cause)
Constructs exception with given message and cause.- Parameters:
msg- Exception message.cause- Exception cause.
-
IgniteIllegalStateException
public IgniteIllegalStateException(Throwable cause)
Creates exception given throwable as a cause and source of error message.- Parameters:
cause- Non-null throwable cause.
-
IgniteIllegalStateException
public IgniteIllegalStateException(String msg)
Constructs exception with given message.- Parameters:
msg- Exception message.
-
-
Method Detail
-
hasCause
public boolean hasCause(@Nullable @Nullable Class<? extends Throwable>... cls)Checks if this exception has given class in'cause'hierarchy.- Parameters:
cls- Cause class to check (ifnull,falseis returned)..- Returns:
Trueif one of the causing exception is an instance of passed in class,falseotherwise.
-
getCause
@Nullable public <T extends Throwable> T getCause(@Nullable @Nullable Class<T> cls)
Gets first exception of given class from'cause'hierarchy if any.- Type Parameters:
T- Type of the causing exception.- Parameters:
cls- Cause class to get cause (ifnull,nullis returned).- Returns:
- First causing exception of passed in class,
nullotherwise.
-
-