Representation of a future nack response that is retryable
Representation of a nack response that is non-retryable
Representation of a nack response that is retryable
Adapt an exception.
Adapt an exception. If the passed-in exception is already a failure, this returns a chained failure with the assigned flags. If it is not, it returns a new failure with the given flags.
Create a new failure with the given message; no flags.
Create a new failure with the given message and flags.
Create a new failure with the given message and cause; no flags.
Create a new failure with the given message, cause, and flags.
Create a new failure with the given cause; no flags.
Create a new failure with the given cause and flags.
Create a new FailureFlags.DeadlineExceeded failure with the given message.
Create a new FailureFlags.Ignorable failure with the given message.
Create a new FailureFlags.Ignorable failure with the given message.
Ignorable
implies NonRetryable
, but does not set the flag
explicitly. See com.twitter.finagle.service.ResponseClassifier
for how Ignorable
is used.
A module to strip out dangerous flags.
Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given message and cause.
Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given cause.
Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given message.
A default FailureFlags.Retryable failure.
Extractor for Failure; returns its cause.
Create a new wrapped Failure with no flags.
Create a new wrapped Failure with no flags. If the passed-in exception is a failure, it is simply extended, otherwise a new Failure is created.
Create a new wrapped Failure with the given flags.
Create a new wrapped Failure with the given flags. If the passed-in exception is a failure, it is simply extended, otherwise a new Failure is created.
Flag restartable indicates that the action that caused the failure is restartable -- that is, it is safe to simply re-issue the action.
Flag restartable indicates that the action that caused the failure is restartable -- that is, it is safe to simply re-issue the action.
(Since version 2018-7-17) Use FailureFlags.Retryable
Flag wrapped indicates that this failure was wrapped, and should not be presented to the user (directly, or via stats).
Flag wrapped indicates that this failure was wrapped, and should not be presented to the user (directly, or via stats). Rather, it must first be unwrapped: the inner cause is the presentable failure.
(Since version 2018-7-17) Use FailureFlags.Wrapped