Object/Class

com.twitter.finagle

Failure

Related Docs: class Failure | package finagle

Permalink

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
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. val FutureRetryableNackFailure: Future[Nothing]

    Permalink

    Representation of a future nack response that is retryable

  5. val NonRetryableNackFailure: Failure

    Permalink

    Representation of a nack response that is non-retryable

  6. val RetryableNackFailure: Failure

    Permalink

    Representation of a nack response that is retryable

  7. object Source extends Enumeration

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

    Permalink

    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.

  9. def apply(why: String): Failure

    Permalink

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

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

    Permalink

    Create a new failure with the given message and flags.

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

    Permalink

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

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

    Permalink

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

  13. def apply(cause: Throwable): Failure

    Permalink

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

  14. def apply(cause: Throwable, flags: Long, logLevel: Level = Level.WARNING): Failure

    Permalink

    Create a new failure with the given cause and flags.

  15. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  16. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  17. def deadlineExceeded(why: String): Failure

    Permalink

    Create a new FailureFlags.DeadlineExceeded failure with the given message.

  18. final def eq(arg0: AnyRef): Boolean

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

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

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

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

    Permalink
    Definition Classes
    AnyRef → Any
  23. def ignorable(why: String): Failure

    Permalink

    Create a new FailureFlags.Ignorable failure with the given message.

  24. final def isInstanceOf[T0]: Boolean

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

    Permalink

    A module to strip out dangerous flags.

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

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

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

    Permalink
    Definition Classes
    AnyRef
  29. def rejected(why: String, cause: Throwable): Failure

    Permalink

    Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given message and cause.

  30. def rejected(cause: Throwable): Failure

    Permalink

    Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given cause.

  31. def rejected(why: String): Failure

    Permalink

    Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given message.

  32. val rejected: Failure

    Permalink

    A default FailureFlags.Retryable failure.

  33. val role: Role

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

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

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

    Permalink

    Extractor for Failure; returns its cause.

  37. final def wait(): Unit

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

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

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

    Permalink

    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.

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

    Permalink

    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.

Deprecated Value Members

  1. val DeadlineExceeded: Long

    Permalink

    Flag deadline exceeded indicates that this failure occured because a request was received past its deadline.

    Flag deadline exceeded indicates that this failure occured because a request was received past its deadline.

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-7-17) Use FailureFlags.DeadlineExceeded

  2. val Ignorable: Long

    Permalink

    Flag ignorable indicates that the failure can be ignored and should not be surfaced via stats.

    Flag ignorable indicates that the failure can be ignored and should not be surfaced via stats.

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-7-17) Use FailureFlags.Ignorable

  3. val Interrupted: Long

    Permalink

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-7-17) Use FailureFlags.Interrupted

  4. val NonRetryable: Long

    Permalink

    Flag nonretryable indicates that the action that caused this failure should not be re-issued.

    Flag nonretryable indicates that the action that caused this failure should not be re-issued. This failure should be propagated back along the call chain as far as possible.

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-7-17) Use FailureFlags.NonRetryable

  5. val Rejected: Long

    Permalink

    Flag rejected indicates that the work was rejected and therefore cannot be completed.

    Flag rejected indicates that the work was rejected and therefore cannot be completed. This may indicate an overload condition.

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-7-17) Use FailureFlags.Rejected

  6. val Restartable: Long

    Permalink

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

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

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-7-17) Use FailureFlags.Retryable

  7. val Wrapped: Long

    Permalink

    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.

    Annotations
    @deprecated
    Deprecated

    (Since version 2018-7-17) Use FailureFlags.Wrapped

  8. def flagsOf(exc: Throwable): Set[String]

    Permalink

    Expose flags as strings, used for stats reporting

    Expose flags as strings, used for stats reporting

    Annotations
    @deprecated
    Deprecated

    (Since version 2017-05-08) Use FailureFlags.flagsOf instead

Inherited from Serializable

Inherited from Serializable

Inherited from AnyRef

Inherited from Any

Ungrouped