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
-
#details ⇒ Object
readonly
Returns the value of attribute details.
Instance Method Summary collapse
-
#initialize(msg) ⇒ GaxError
constructor
A new instance of GaxError.
Constructor Details
#initialize(msg) ⇒ GaxError
Returns a new instance of GaxError.
41 42 43 44 45 46 47 |
# File 'lib/google/gax/errors.rb', line 41 def initialize(msg) msg = "GaxError #{msg}" msg += ", caused by #{$ERROR_INFO}" if $ERROR_INFO super(msg) @cause = $ERROR_INFO @details = Google::Gax::Grpc.deserialize_error_status_details(@cause) end |
Instance Attribute Details
#details ⇒ Object (readonly)
Returns the value of attribute details.
38 39 40 |
# File 'lib/google/gax/errors.rb', line 38 def details @details end |