com.twitter.finagle

Failure

object Failure extends Serializable

Linear Supertypes
Serializable, Serializable, AnyRef, Any
Ordering
  1. Alphabetic
  2. By inheritance
Inherited
  1. Failure
  2. Serializable
  3. Serializable
  4. AnyRef
  5. 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. val Interrupted: Long

    Flag interrupted indicates that the error was caused due to an interruption.

    Flag interrupted indicates that the error was caused due to an interruption. (e.g., by invoking Future.raise.)

  7. val Restartable: Long

    Flag restartable indicates that the action that caused the failure is restartable -- that is, it is safe to simply re-issue the action.

  8. object Source extends Enumeration

  9. val Wrapped: Long

    Flag wrapped indicates that this failure was wrapped, and should not be presented to the user (directly, or via stats).

    Flag wrapped indicates that this failure was wrapped, and should not be presented to the user (directly, or via stats). Rather, it must first be unwrapped: the inner cause is the presentable failure.

  10. def adapt(exc: Throwable, flags: Long): Failure

    Adapt an exception.

    Adapt an exception. If the passed-in exception is already a failure, this returns a chained failure with the assigned flags. If it is not, it returns a new failure with the given flags.

  11. def apply(why: String): Failure

    Create a new failure with the given message; no flags.

  12. def apply(why: String, flags: Long): Failure

    Create a new failure with the given message and flags.

  13. def apply(why: String, cause: Throwable): Failure

    Create a new failure with the given message and cause; no flags.

  14. def apply(why: String, cause: Throwable, flags: Long): Failure

    Create a new failure with the given message, cause, and flags.

  15. def apply(cause: Throwable): Failure

    Create a new failure with the given cause; no flags.

  16. def apply(cause: Throwable, flags: Long): Failure

    Create a new failure with the given cause and flags.

  17. final def asInstanceOf[T0]: T0

    Definition Classes
    Any
  18. def clone(): AnyRef

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

    Definition Classes
    AnyRef
  20. def equals(arg0: Any): Boolean

    Definition Classes
    AnyRef → Any
  21. def finalize(): Unit

    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  22. final def getClass(): Class[_]

    Definition Classes
    AnyRef → Any
  23. def hashCode(): Int

    Definition Classes
    AnyRef → Any
  24. final def isInstanceOf[T0]: Boolean

    Definition Classes
    Any
  25. def module[Req, Rep]: Stackable[ServiceFactory[Req, Rep]]

    A module to strip out dangerous flags; more coming soon.

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

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

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

    Definition Classes
    AnyRef
  29. def rejected(cause: Throwable): Failure

    Create a new Restartable failure with the given cause.

  30. def rejected(why: String): Failure

    Create a new Restartable failure with the given message.

  31. val rejected: Failure

    A default Restartable failure.

  32. val role: Role

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

    Definition Classes
    AnyRef
  34. def toString(): String

    Definition Classes
    AnyRef → Any
  35. def unapply(exc: Failure): Option[Option[Throwable]]

    Extractor for Failure; returns its cause.

  36. final def wait(): Unit

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

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

    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  39. def wrap(exc: Throwable): Failure

    Create a new wrapped Failure with no flags.

    Create a new wrapped Failure with no flags. If the passed-in exception is a failure, it is simply extended, otherwise a new Failure is created.

  40. def wrap(exc: Throwable, flags: Long): Failure

    Create a new wrapped Failure with the given flags.

    Create a new wrapped Failure with the given flags. If the passed-in exception is a failure, it is simply extended, otherwise a new Failure is created.

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped