Class GridClosureException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.apache.ignite.IgniteException
-
- org.apache.ignite.internal.util.lang.GridClosureException
-
- All Implemented Interfaces:
Serializable
public class GridClosureException extends IgniteException
This exception provides closures with facility to throw exceptions. Closures can't throw checked exception and this class provides a standard idiom on how to wrap and pass an exception up the call chain.- See Also:
GridFunc.wrap(Throwable), Serialized Form
-
-
Constructor Summary
Constructors Constructor Description GridClosureException(Throwable e)Creates wrapper closure exception for givenIgniteCheckedException.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Throwableunwrap()Unwraps the originalThrowableinstance.-
Methods inherited from class org.apache.ignite.IgniteException
getCause, hasCause, toString
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace
-
-
-
-
Constructor Detail
-
GridClosureException
public GridClosureException(Throwable e)
Creates wrapper closure exception for givenIgniteCheckedException.- Parameters:
e- Exception to wrap.
-
-