Package org.multiverse.api.exceptions
Class RetryInterruptedException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- org.multiverse.api.exceptions.TxnExecutionException
-
- org.multiverse.api.exceptions.RetryException
-
- org.multiverse.api.exceptions.RetryInterruptedException
-
- All Implemented Interfaces:
Serializable
public class RetryInterruptedException extends RetryException
ARetryExceptionthrown when the blocking operation on aTxnusing the retry has been interrupted.Unlike the
InterruptedExceptionthis exception is not checked. A checked interrupted exception is quite nasty to have since either you need to deal with it, or you need to propagate it.When this exception is thrown, the interrupted status on the Thread always is restored.
-
-
Constructor Summary
Constructors Constructor Description RetryInterruptedException(String message)Creates a new RetryInterruptedException with the provided message.RetryInterruptedException(String message, Throwable cause)Creates a new RetryInterruptedException with the provided message and cause.
-
Method Summary
-
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
-
-
-
Constructor Detail
-
RetryInterruptedException
public RetryInterruptedException(String message)
Creates a new RetryInterruptedException with the provided message.- Parameters:
message- the message
-
-