class Gapic::GRPC::DeadlineExceededError

An error class that represents Deadline Exceeded error with an optional retry root cause.

The GRPC layer throws ::GRPC::DeadlineExceeded without any context. If the deadline was exceeded while retrying another exception (e.g. ::GRPC::Unavailable), that exception could be useful for understanding the readon for the timeout.

This exception rewraps ::GRPC::DeadlineExceeded, adding an exception that was being retried until the deadline was exceeded (if any) as a `root_cause` attribute.

@!attribute [r] root_cause

@return [Object, nil] The exception that was being retried
  when the DeadlineExceeded error occured.

Attributes

root_cause[R]

Public Class Methods

new(message, root_cause: nil) click to toggle source

@param message [String] The error message.

@param root_cause [Object, nil] The exception that was being retried

when the DeadlineExceeded error occured.
Calls superclass method
# File lib/gapic/grpc/errors.rb, line 54
def initialize message, root_cause: nil
  super message
  @root_cause = root_cause
end