Package org.apache.ignite
Class IgniteCheckedException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.ignite.IgniteCheckedException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
org.apache.ignite.internal.CorruptedDataStructureException,DeltaApplicationException
General grid exception. This exception is used to indicate any error condition
within Grid.
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionCreate empty exception.Creates new exception with given error message.IgniteCheckedException(String msg, Throwable cause) Creates new exception with given error message and optional nested exception.IgniteCheckedException(String msg, Throwable cause, boolean writableStackTrace) Creates new exception with given error message and optional nested exception.IgniteCheckedException(Throwable cause) Creates new grid exception with given throwable as a cause and source of error message. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
Constructor Details
-
IgniteCheckedException
public IgniteCheckedException()Create empty exception. -
IgniteCheckedException
Creates new exception with given error message.- Parameters:
msg- Error message.
-
IgniteCheckedException
Creates new grid exception with given throwable as a cause and source of error message.- Parameters:
cause- Non-null throwable cause.
-
IgniteCheckedException
Creates new exception with given error message and optional nested exception.- Parameters:
msg- Error message.cause- Optional nested exception (can benull).writableStackTrace- whether or not the stack trace should be writable
-
IgniteCheckedException
Creates new exception with given error message and optional nested exception.- Parameters:
msg- Error message.cause- Optional nested exception (can benull).
-
-
Method Details
-
hasCause
Checks if this exception has given class in'cause'hierarchy.- Parameters:
cls- Cause classes to check (ifnullor empty,falseis returned).- Returns:
Trueif one of the causing exception is an instance of passed in classes,falseotherwise.
-
getCause
Gets first exception of given class from'cause'hierarchy if any.- Parameters:
cls- Cause class to get cause (ifnull,nullis returned).- Returns:
- First causing exception of passed in class,
nullotherwise.
-
toString
-