Package org.multiverse.api.exceptions
Class TooManyRetriesException
- 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.TooManyRetriesException
-
- All Implemented Interfaces:
java.io.Serializable
public class TooManyRetriesException extends RetryException
ARetryException
thrown when aTxn
is retried too many times. Uncontrolled retrying could lead to liveness problems like livelocks and starvation.
-
-
Constructor Summary
Constructors Constructor Description TooManyRetriesException(java.lang.String message)
Creates a new TooManyRetriesException with the provided message.TooManyRetriesException(java.lang.String message, java.lang.Throwable cause)
Creates a new TooManyRetriesException with the provided message.
-
-
-
Constructor Detail
-
TooManyRetriesException
public TooManyRetriesException(java.lang.String message)
Creates a new TooManyRetriesException with the provided message.- Parameters:
message
- the message of the exception.
-
TooManyRetriesException
public TooManyRetriesException(java.lang.String message, java.lang.Throwable cause)
Creates a new TooManyRetriesException with the provided message.- Parameters:
message
- the message of the exceptioncause
- the cause of the exception
-
-