object Failure extends Serializable
- Alphabetic
- By Inheritance
- Failure
- Serializable
- Serializable
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
val
FutureRetryableNackFailure: Future[Nothing]
Representation of a future nack response that is retryable
-
val
NonRetryableNackFailure: Failure
Representation of a nack response that is non-retryable
-
val
RetryableNackFailure: Failure
Representation of a nack response that is retryable
-
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.
-
def
apply(why: String): Failure
Create a new failure with the given message; no flags.
-
def
apply(why: String, flags: Long): Failure
Create a new failure with the given message and flags.
-
def
apply(why: String, cause: Throwable): Failure
Create a new failure with the given message and cause; no flags.
-
def
apply(why: String, cause: Throwable, flags: Long): Failure
Create a new failure with the given message, cause, and flags.
-
def
apply(cause: Throwable): Failure
Create a new failure with the given cause; no flags.
-
def
apply(cause: Throwable, flags: Long, logLevel: Level = Level.WARNING): Failure
Create a new failure with the given cause and flags.
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
-
def
clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
def
deadlineExceeded(why: String): Failure
Create a new FailureFlags.DeadlineExceeded failure with the given message.
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @native()
-
def
ignorable(why: String): Failure
Create a new FailureFlags.Ignorable failure with the given message.
Create a new FailureFlags.Ignorable failure with the given message.
- Note
Ignorable
impliesNonRetryable
, but does not set the flag explicitly. See com.twitter.finagle.service.ResponseClassifier for howIgnorable
is used.
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
module[Req, Rep]: Stackable[ServiceFactory[Req, Rep]]
A module to strip out dangerous flags.
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @native()
-
def
rejected(why: String, cause: Throwable): Failure
Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given message and cause.
-
def
rejected(cause: Throwable): Failure
Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given cause.
-
def
rejected(why: String): Failure
Create a new FailureFlags.Retryable and FailureFlags.Rejected failure with the given message.
-
val
rejected: Failure
A default FailureFlags.Retryable failure.
- val role: Role
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
unapply(exc: Failure): Option[Option[Throwable]]
Extractor for Failure; returns its cause.
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... ) @native()
-
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.
-
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.
- object Source extends Enumeration
Deprecated Value Members
-
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.
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
-
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.
- Annotations
- @deprecated
- Deprecated
(Since version 2018-7-17) Use FailureFlags.Wrapped