Package

com.twitter.inject

exceptions

Permalink

package exceptions

Visibility
  1. Public
  2. All

Value Members

  1. object PossiblyRetryable

    Permalink

    PossiblyRetryable attempts to determine if a request is possibly retryable based on the returned com.twitter.scrooge.ThriftResponse.

    PossiblyRetryable attempts to determine if a request is possibly retryable based on the returned com.twitter.scrooge.ThriftResponse.

    The com.twitter.scrooge.ThriftResponse#successField = None is a possibility on successful void methods. We only want to mark a request as "possibly retryable" if the successField is empty and there exists a "possibly retryable" exception in the first position in the returned Seq of exceptions in com.twitter.scrooge.ThriftResponse#errorFields.

    See also

    com.twitter.scrooge.ThriftResponse#firstException The request is "possibly retryable" because while the framework can say the request is retryable due to the type of com.twitter.scrooge.ThriftException returned it is ultimately up to the application to decide if the returned com.twitter.scrooge.ThriftException actually makes sense to be retried.

Ungrouped