A copy of this object with the given flags replacing the current flags.
A copy of this object with the given flags replacing the current flags. The caller of this method should check to see if a copy is necessary before calling.
As this is an internal API, the other Throwable
fields such as the cause
and stack trace should be handled by callers.
This as a non-retryable failure.
This as a non-retryable failure. This does not mutate.
This as a rejected failure.
This as a rejected failure. This does not mutate.
Test if this is flagged with a particular set of flags
Carries metadata for exceptions such as whether or not the exception is safe to retry.
The boolean properties can be tested via the FailureFlags.isFlagged(Long) method where the values for the flags are a bitmask from the constants defined on the companion object. Common flags are
Rejected
andNonRetryable
.AbstractFailureFlags for creating subclasses in Java.