Exception: Google::Gax::GaxError
- Inherits:
-
StandardError
- Object
- StandardError
- Google::Gax::GaxError
- Defined in:
- lib/google/gax/errors.rb
Overview
Common base class for exceptions raised by GAX.
Direct Known Subclasses
Instance Attribute Summary collapse
-
#cause ⇒ Object
readonly
Returns the value of attribute cause.
Instance Method Summary collapse
-
#initialize(msg, cause: nil) ⇒ GaxError
constructor
A new instance of GaxError.
Constructor Details
#initialize(msg, cause: nil) ⇒ GaxError
Returns a new instance of GaxError.
40 41 42 43 44 |
# File 'lib/google/gax/errors.rb', line 40 def initialize(msg, cause:nil) msg = "GaxError #{msg}, caused by #{cause}" if cause super(msg) @cause = cause end |
Instance Attribute Details
#cause ⇒ Object (readonly)
Returns the value of attribute cause.
34 35 36 |
# File 'lib/google/gax/errors.rb', line 34 def cause @cause end |