final case classFailure extends RuntimeException with NoStacktrace with Product with Serializable
Base exception for all Finagle originated failures. These are
RuntimeExceptions, but with additional sources and flags.
Sources describe the origins of the failure to aid in debugging
and flags mark attributes of the Failure (e.g. Retryable).
Failures are constructed and extracted using the Failure
companion object.
val failure = Failure.InterruptedBy(cause).withRetryable(true)
val shouldRetry = failure match {
case Failure.Retryable(_) =>truecase _ =>false
}
Linear Supertypes
Serializable, Product, Equals, NoStacktrace, RuntimeException, Exception, Throwable, Serializable, AnyRef, Any
Base exception for all Finagle originated failures. These are RuntimeExceptions, but with additional
sources
andflags
. Sources describe the origins of the failure to aid in debugging and flags mark attributes of the Failure (e.g. Retryable). Failures are constructed and extracted using the Failure companion object.