final class Failure extends Exception with NoStackTrace with HasLogLevel with FailureFlags[Failure]
Base exception for all Finagle originated failures. These are
Exceptions, 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. Restartable).
- Alphabetic
- By Inheritance
- Failure
- FailureFlags
- HasLogLevel
- NoStackTrace
- Exception
- Throwable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def addSuppressed(arg0: Throwable): Unit
- Definition Classes
- Throwable
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def asNonRetryable: Failure
This as a non-retryable failure.
This as a non-retryable failure. This does not mutate.
- Definition Classes
- FailureFlags
- def asRejected: Failure
This as a rejected failure.
This as a rejected failure. This does not mutate.
- Definition Classes
- FailureFlags
- val cause: Option[Throwable]
- def chained: Failure
A new failure with the current Failure as cause.
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @native()
- def copyWithFlags(newFlags: Long): Failure
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.- Attributes
- protected
- Definition Classes
- Failure → FailureFlags
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(a: Any): Boolean
- Definition Classes
- Failure → AnyRef → Any
- def fillInStackTrace(): Throwable
- Definition Classes
- NoStackTrace → Throwable
- def finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.Throwable])
- val flags: Long
- Definition Classes
- Failure → FailureFlags
- def getCause(): Throwable
- Definition Classes
- Throwable
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
- def getLocalizedMessage(): String
- Definition Classes
- Throwable
- def getMessage(): String
- Definition Classes
- Throwable
- def getSource(key: Failure.Source.Value): Option[AnyRef]
Returns a source for a given key, if it exists.
- def getStackTrace(): Array[StackTraceElement]
- Definition Classes
- Throwable
- final def getSuppressed(): Array[Throwable]
- Definition Classes
- Throwable
- def hashCode(): Int
- Definition Classes
- Failure → AnyRef → Any
- def initCause(arg0: Throwable): Throwable
- Definition Classes
- Throwable
- def isFlagged(which: Long): Boolean
Test if this is flagged with a particular set of flags
Test if this is flagged with a particular set of flags
- Definition Classes
- FailureFlags
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- val logLevel: Level
- Definition Classes
- Failure → HasLogLevel
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
- def printStackTrace(arg0: PrintWriter): Unit
- Definition Classes
- Throwable
- def printStackTrace(arg0: PrintStream): Unit
- Definition Classes
- Throwable
- def printStackTrace(): Unit
- Definition Classes
- Throwable
- def setStackTrace(arg0: Array[StackTraceElement]): Unit
- Definition Classes
- Throwable
- def show: Throwable
A
Throwable
appropriate for user presentation (e.g., for stats, or to return from a user's Service.)A
Throwable
appropriate for user presentation (e.g., for stats, or to return from a user's Service.)Show may return
this
. - val sources: Map[Failure.Source.Value, AnyRef]
- Attributes
- protected
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- Failure → Throwable → AnyRef → Any
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- def withLogLevel(level: Level): Failure
Creates a new Failure with the given logging Level.
Creates a new Failure with the given logging Level.
Note: it is not guaranteed that all
Failure
s are logged within finagle and this only applies to ones that are. - def withSource(key: Failure.Source.Value, value: AnyRef): Failure
Creates a new Failure with the given key value pair prepended to sources.