Packages

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
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean
    Definition Classes
    AnyRef → Any
  4. final def addSuppressed(arg0: Throwable): Unit
    Definition Classes
    Throwable
  5. final def asInstanceOf[T0]: T0
    Definition Classes
    Any
  6. def asNonRetryable: Failure

    This as a non-retryable failure.

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

    Definition Classes
    FailureFlags
  7. def asRejected: Failure

    This as a rejected failure.

    This as a rejected failure. This does not mutate.

    Definition Classes
    FailureFlags
  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
    @native() @throws( ... )
  11. 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
    FailureFailureFlags
  12. final def eq(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  13. def equals(a: Any): Boolean
    Definition Classes
    Failure → AnyRef → Any
  14. def fillInStackTrace(): Throwable
    Definition Classes
    NoStackTrace → Throwable
  15. def finalize(): Unit
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  16. val flags: Long
    Definition Classes
    FailureFailureFlags
  17. def getCause(): Throwable
    Definition Classes
    Throwable
  18. final def getClass(): Class[_]
    Definition Classes
    AnyRef → Any
    Annotations
    @native()
  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
    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 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
    Definition Classes
    Any
  28. val logLevel: Level
    Definition Classes
    Failure → HasLogLevel
  29. final def ne(arg0: AnyRef): Boolean
    Definition Classes
    AnyRef
  30. final def notify(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  31. final def notifyAll(): Unit
    Definition Classes
    AnyRef
    Annotations
    @native()
  32. def printStackTrace(arg0: PrintWriter): Unit
    Definition Classes
    Throwable
  33. def printStackTrace(arg0: PrintStream): Unit
    Definition Classes
    Throwable
  34. def printStackTrace(): Unit
    Definition Classes
    Throwable
  35. def setStackTrace(arg0: Array[StackTraceElement]): Unit
    Definition Classes
    Throwable
  36. 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.

  37. val sources: Map[Failure.Source.Value, AnyRef]
    Attributes
    protected
  38. final def synchronized[T0](arg0: ⇒ T0): T0
    Definition Classes
    AnyRef
  39. def toString(): String
    Definition Classes
    Failure → Throwable → AnyRef → Any
  40. final def wait(): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  41. final def wait(arg0: Long, arg1: Int): Unit
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long): Unit
    Definition Classes
    AnyRef
    Annotations
    @native() @throws( ... )
  43. 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.

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

    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