Package org.apache.ignite.spi
Class IgniteSpiMultiException
- java.lang.Object
- 
- java.lang.Throwable
- 
- java.lang.Exception
- 
- java.lang.RuntimeException
- 
- org.apache.ignite.IgniteException
- 
- org.apache.ignite.spi.IgniteSpiException
- 
- org.apache.ignite.spi.IgniteSpiMultiException
 
 
 
 
 
 
- 
- All Implemented Interfaces:
- Serializable
 
 public class IgniteSpiMultiException extends IgniteSpiException Grid SPI exception which may contain more than one failure.- See Also:
- Serialized Form
 
- 
- 
Constructor SummaryConstructors Constructor Description IgniteSpiMultiException(String msg)Creates new exception with given error message.IgniteSpiMultiException(String msg, @Nullable Throwable cause)Creates new exception with given error message and optional nested exception.IgniteSpiMultiException(String msg, @Nullable Throwable cause, @Nullable Collection<Throwable> nestedCauses)Creates new exception with given error message and optional nested exception.IgniteSpiMultiException(Throwable cause)Creates new grid exception with given throwable as a cause and source of error message.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description voidadd(Throwable cause)Adds a new cause for multi-exception.List<Throwable>nestedCauses()Gets nested causes for this multi-exception.voidprintStackTrace(PrintStream s)- 
Methods inherited from class org.apache.ignite.IgniteExceptiongetCause, hasCause, toString
 - 
Methods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, setStackTrace
 
- 
 
- 
- 
- 
Constructor Detail- 
IgniteSpiMultiExceptionpublic IgniteSpiMultiException(String msg) Creates new exception with given error message.- Parameters:
- msg- Error message.
 
 - 
IgniteSpiMultiExceptionpublic IgniteSpiMultiException(Throwable cause) Creates new grid exception with given throwable as a cause and source of error message.- Parameters:
- cause- Non-null throwable cause.
 
 - 
IgniteSpiMultiExceptionpublic IgniteSpiMultiException(String msg, @Nullable @Nullable Throwable cause) Creates new exception with given error message and optional nested exception.- Parameters:
- msg- Error message.
- cause- Optional nested exception (can be- null).
 
 - 
IgniteSpiMultiExceptionpublic IgniteSpiMultiException(String msg, @Nullable @Nullable Throwable cause, @Nullable @Nullable Collection<Throwable> nestedCauses) Creates new exception with given error message and optional nested exception.- Parameters:
- msg- Error message.
- cause- Optional nested exception (can be- null).
- nestedCauses- Optional collection of nested causes.
 
 
- 
 - 
Method Detail- 
addpublic void add(Throwable cause) Adds a new cause for multi-exception.- Parameters:
- cause- Cause to add.
 
 - 
nestedCausespublic List<Throwable> nestedCauses() Gets nested causes for this multi-exception.- Returns:
- Nested causes for this multi-exception.
 
 - 
printStackTracepublic void printStackTrace(PrintStream s) - Overrides:
- printStackTracein class- Throwable
 
 
- 
 
-