Class/Object

com.twitter.finagle

Failure

Related Docs: object Failure | package finagle

Permalink

final class Failure extends Exception with NoStacktrace with HasLogLevel

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
HasLogLevel, NoStacktrace, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Failure
  2. HasLogLevel
  3. NoStacktrace
  4. Exception
  5. Throwable
  6. Serializable
  7. AnyRef
  8. 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. val cause: Option[Throwable]

    Permalink
  7. def chained: Failure

    Permalink

    A new failure with the current Failure as cause.

  8. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  9. final def eq(arg0: AnyRef): Boolean

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

    Permalink
    Definition Classes
    Failure → AnyRef → Any
  11. def fillInStackTrace(): NoStacktrace

    Permalink
    Definition Classes
    NoStacktrace → Throwable
  12. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  13. def flagged(addFlags: Long): Failure

    Permalink

    This failure with the given flags added.

    This failure with the given flags added.

    See Failure for flag definitions.

  14. val flags: Long

    Permalink
  15. def getCause(): Throwable

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

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

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

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

    Permalink

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

  20. def getStackTrace(): Array[StackTraceElement]

    Permalink
    Definition Classes
    Failure → Throwable
  21. final def getSuppressed(): Array[Throwable]

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

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

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

    Permalink

    Test whether the given flags are set.

    Test whether the given flags are set.

    See Failure flag definitions.

  25. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  26. val logLevel: Level

    Permalink
    Definition Classes
    Failure → HasLogLevel
  27. def masked(mask: Long): Failure

    Permalink

    Apply the given flags mask.

    Apply the given flags mask.

    See Failure forflag definitions.

  28. final def ne(arg0: AnyRef): Boolean

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

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

    Permalink
    Definition Classes
    AnyRef
  31. def printStackTrace(p: PrintWriter): Unit

    Permalink
    Definition Classes
    Failure → Throwable
  32. def printStackTrace(arg0: PrintStream): Unit

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

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

    Permalink
    Definition Classes
    Throwable
  35. 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.

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

    Permalink
    Attributes
    protected
  37. val stacktrace: Array[StackTraceElement]

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

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

    Permalink
    Definition Classes
    Failure → Throwable → AnyRef → Any
  40. def unflagged(delFlags: Long): Failure

    Permalink

    This failure with the given flags removed.

    This failure with the given flags removed.

    See Failure forflag definitions.

  41. final def wait(): Unit

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

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

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. 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.

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

    Permalink

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

  46. def withStackTrace(): Failure

    Permalink

    Creates a new Failure with the current threads stacktrace.

Inherited from HasLogLevel

Inherited from NoStacktrace

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped