Class RetryException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
io.helidon.faulttolerance.FaultToleranceException
io.helidon.faulttolerance.RetryException
- All Implemented Interfaces:
Serializable
Exception thrown by contextual
Retry invocations.- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionRetryException(String message, RetryOutcome outcome) Create a retry exception without a cause.RetryException(String message, RetryOutcome outcome, Throwable cause) Create a retry exception. -
Method Summary
Modifier and TypeMethodDescriptionoutcome()Retry outcome.Reason the retry invocation terminated.Methods inherited from class Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
RetryException
Create a retry exception without a cause.- Parameters:
message- error messageoutcome- retry outcome
-
RetryException
Create a retry exception.- Parameters:
message- error messageoutcome- retry outcomecause- exception that caused the retry invocation to terminate
-
-
Method Details
-
termination
Reason the retry invocation terminated.- Returns:
- termination reason
-
outcome
-