Class RetryException

All Implemented Interfaces:
Serializable

public final class RetryException extends FaultToleranceException
Exception thrown by contextual Retry invocations.
See Also:
  • Constructor Details

    • RetryException

      public RetryException(String message, RetryOutcome outcome)
      Create a retry exception without a cause.
      Parameters:
      message - error message
      outcome - retry outcome
    • RetryException

      public RetryException(String message, RetryOutcome outcome, Throwable cause)
      Create a retry exception.
      Parameters:
      message - error message
      outcome - retry outcome
      cause - exception that caused the retry invocation to terminate
  • Method Details

    • termination

      public RetryOutcome.Termination termination()
      Reason the retry invocation terminated.
      Returns:
      termination reason
    • outcome

      public RetryOutcome outcome()
      Retry outcome.
      Returns:
      retry outcome