Class: Google::Cloud::Error

Inherits:
Object
  • Object
show all
Defined in:
lib/google/cloud/spanner/spanner_error.rb

Instance Method Summary collapse

Instance Method Details

#request_idString?

The Spanner header ID if there was an error on the request.

Returns:

  • (String, nil)


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