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.
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 deadline exceeded indicates that this failure occured because a request was received past its deadline.
Flag deadline exceeded indicates that this failure occured because a request was received past its deadline.
(Since version 2018-7-17) Use FailureFlags.DeadlineExceeded
Flag ignorable indicates that the failure can be ignored and should not be surfaced via stats.
Flag ignorable indicates that the failure can be ignored and should not be surfaced via stats.
(Since version 2018-7-17) Use FailureFlags.Ignorable
Flag interrupted indicates that the error was caused due to an interruption.
Flag interrupted indicates that the error was caused due to an interruption. (e.g., by invoking Future.raise.)
(Since version 2018-7-17) Use FailureFlags.Interrupted
Flag nonretryable indicates that the action that caused this failure should not be re-issued.
Flag nonretryable indicates that the action that caused this failure should not be re-issued. This failure should be propagated back along the call chain as far as possible.
(Since version 2018-7-17) Use FailureFlags.NonRetryable
Flag rejected indicates that the work was rejected and therefore cannot be completed.
Flag rejected indicates that the work was rejected and therefore cannot be completed. This may indicate an overload condition.
(Since version 2018-7-17) Use FailureFlags.Rejected
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
Expose flags as strings, used for stats reporting
Expose flags as strings, used for stats reporting
(Since version 2017-05-08) Use FailureFlags.flagsOf
instead