com.twitter.finagle

Failure

final class Failure extends Exception with NoStacktrace

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
NoStacktrace, Exception, Throwable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Failure
  2. NoStacktrace
  3. Exception
  4. Throwable
  5. Serializable
  6. AnyRef
  7. Any
  1. Hide All
  2. Show all
Learn more about member selection
Visibility
  1. Public
  2. All

Value Members

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

    Definition Classes
    AnyRef
  2. final def !=(arg0: Any): Boolean

    Definition Classes
    Any
  3. final def ##(): Int

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

    Definition Classes
    AnyRef
  5. final def ==(arg0: Any): Boolean

    Definition Classes
    Any
  6. final def addSuppressed(arg0: Throwable): Unit

    Definition Classes
    Throwable
  7. final def asInstanceOf[T0]: T0

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

  9. def chained: Failure

    A new failure with the current Failure as cause.

  10. def clone(): AnyRef

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

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

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

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

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

    This failure with the given flags added.

    This failure with the given flags added.

    See Failure for flag definitions.

  16. val flags: Long

  17. def getCause(): Throwable

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

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

    Definition Classes
    Throwable
  20. def getMessage(): String

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

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

  22. def getStackTrace(): Array[StackTraceElement]

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

    Definition Classes
    Throwable
  24. def hashCode(): Int

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

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

    Test whether the given flags are set.

    Test whether the given flags are set.

    See Failure flag definitions.

  27. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  28. val logLevel: Level

  29. def masked(mask: Long): Failure

    Apply the given flags mask.

    Apply the given flags mask.

    See Failure forflag definitions.

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

    Definition Classes
    AnyRef
  31. final def notify(): Unit

    Definition Classes
    AnyRef
  32. final def notifyAll(): Unit

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

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

    Definition Classes
    Throwable
  35. def printStackTrace(): Unit

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

    Definition Classes
    Throwable
  37. def show: Throwable

    A Throwable appropriate for user presentation (e.

    A Throwable appropriate for user presentation (e.g., for stats, or to return from a user's Service.)

    Show may return this.

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

    Attributes
    protected
  39. val stacktrace: Array[StackTraceElement]

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

    Definition Classes
    AnyRef
  41. def toString(): String

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

    This failure with the given flags removed.

    This failure with the given flags removed.

    See Failure forflag definitions.

  43. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  46. 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 Failures are logged within finagle and this only applies to ones that are.

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

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

  48. def withStackTrace(): Failure

    Creates a new Failure with the current threads stacktrace.

Inherited from NoStacktrace

Inherited from Exception

Inherited from Throwable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped