Exception: Google::Gax::GaxError

Inherits:
StandardError
  • Object
show all
Defined in:
lib/google/gax/errors.rb

Overview

Common base class for exceptions raised by GAX.

Direct Known Subclasses

RetryError

Instance Method Summary collapse

Constructor Details

#initialize(msg) ⇒ GaxError

Returns a new instance of GaxError.

Parameters:

  • msg (String)

    describes the error that occurred.



37
38
39
40
41
42
# File 'lib/google/gax/errors.rb', line 37

def initialize(msg)
  msg = "GaxError #{msg}"
  msg += ", caused by #{$ERROR_INFO}" if $ERROR_INFO
  super(msg)
  @cause = $ERROR_INFO
end