Class: Google::Cloud::Error
- Inherits:
-
Object
- Object
- Google::Cloud::Error
- Defined in:
- lib/google/cloud/spanner/spanner_error.rb
Direct Known Subclasses
Spanner::BatchUpdateError, Spanner::ClientClosedError, Spanner::DuplicateNameError, Spanner::Rollback, Spanner::SessionLimitError
Instance Method Summary collapse
-
#request_id ⇒ String?
The Spanner header ID if there was an error on the request.
Instance Method Details
#request_id ⇒ String?
The Spanner header ID if there was an error on the request.
29 30 31 32 |
# File 'lib/google/cloud/spanner/spanner_error.rb', line 29 def request_id return nil unless cause.instance_variable_defined? :@spanner_header_id cause.instance_variable_get :@spanner_header_id end |