Class/Object

com.twitter.finagle

Failure

Related Docs: object Failure | package finagle

Permalink

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).

Linear Supertypes
FailureFlags[Failure], HasLogLevel, NoStackTrace, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. Failure
  2. FailureFlags
  3. HasLogLevel
  4. NoStackTrace
  5. Exception
  6. Throwable
  7. Serializable
  8. AnyRef
  9. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit

    Permalink
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  6. def asNonRetryable: Failure

    Permalink

    This as a non-retryable failure.

    This as a non-retryable failure. This does not mutate.

    Definition Classes
    FailureFlags
  7. def asRejected: Failure

    Permalink

    This as a rejected failure.

    This as a rejected failure. This does not mutate.

    Definition Classes
    FailureFlags
  8. val cause: Option[Throwable]

    Permalink
  9. def chained: Failure

    Permalink

    A new failure with the current Failure as cause.

  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def copyWithFlags(newFlags: Long): Failure

    Permalink

    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
    FailureFailureFlags
  12. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  13. def equals(a: Any): Boolean

    Permalink
    Definition Classes
    Failure → AnyRef → Any
  14. def fillInStackTrace(): Throwable

    Permalink
    Definition Classes
    NoStackTrace → Throwable
  15. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val flags: Long

    Permalink
    Definition Classes
    FailureFailureFlags
  17. def getCause(): Throwable

    Permalink
    Definition Classes
    Throwable
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def getLocalizedMessage(): String

    Permalink
    Definition Classes
    Throwable
  20. def getMessage(): String

    Permalink
    Definition Classes
    Throwable
  21. def getSource(key: Failure.Source.Value): Option[AnyRef]

    Permalink

    Returns a source for a given key, if it exists.

  22. def getStackTrace(): Array[StackTraceElement]

    Permalink
    Definition Classes
    Throwable
  23. final def getSuppressed(): Array[Throwable]

    Permalink
    Definition Classes
    Throwable
  24. def hashCode(): Int

    Permalink
    Definition Classes
    Failure → AnyRef → Any
  25. def initCause(arg0: Throwable): Throwable

    Permalink
    Definition Classes
    Throwable
  26. def isFlagged(which: Long): Boolean

    Permalink

    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
  27. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  28. val logLevel: Level

    Permalink
    Definition Classes
    Failure → HasLogLevel
  29. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  30. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  31. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  32. def printStackTrace(arg0: PrintWriter): Unit

    Permalink
    Definition Classes
    Throwable
  33. def printStackTrace(arg0: PrintStream): Unit

    Permalink
    Definition Classes
    Throwable
  34. def printStackTrace(): Unit

    Permalink
    Definition Classes
    Throwable
  35. def setStackTrace(arg0: Array[StackTraceElement]): Unit

    Permalink
    Definition Classes
    Throwable
  36. def show: Throwable

    Permalink

    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.

  37. val sources: Map[Failure.Source.Value, AnyRef]

    Permalink
    Attributes
    protected
  38. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  39. def toString(): String

    Permalink
    Definition Classes
    Failure → Throwable → AnyRef → Any
  40. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. def withLogLevel(level: Level): Failure

    Permalink

    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 Failures are logged within finagle and this only applies to ones that are.

  44. def withSource(key: Failure.Source.Value, value: AnyRef): Failure

    Permalink

    Creates a new Failure with the given key value pair prepended to sources.

Inherited from FailureFlags[Failure]

Inherited from HasLogLevel

Inherited from NoStackTrace

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped