Class: Google::Cloud::Spanner::Status
- Inherits:
-
Object
- Object
- Google::Cloud::Spanner::Status
- Defined in:
- lib/google/cloud/spanner/status.rb
Overview
Status
Represents a logical error model from the Spanner service, containing an error code, an error message, and optional error details.
Instance Attribute Summary collapse
-
#code ⇒ Integer
The status code, which should be an enum value of google.rpc.Code.
-
#description ⇒ String
The human-readable description for the status code, which should be an enum value of google.rpc.Code.
-
#details ⇒ Array?
A list of messages that carry the error details.
-
#message ⇒ String
A developer-facing error message, which should be in English.
Instance Attribute Details
#code ⇒ Integer
The status code, which should be an enum value of google.rpc.Code.
51 52 53 |
# File 'lib/google/cloud/spanner/status.rb', line 51 def code @code end |
#description ⇒ String
The human-readable description for the status
code, which should be an enum value of
google.rpc.Code.
For example, INVALID_ARGUMENT
.
51 52 53 |
# File 'lib/google/cloud/spanner/status.rb', line 51 def description @description end |
#details ⇒ Array?
A list of messages that carry the error details.
51 52 53 |
# File 'lib/google/cloud/spanner/status.rb', line 51 def details @details end |
#message ⇒ String
A developer-facing error message, which should be in English.
51 52 53 |
# File 'lib/google/cloud/spanner/status.rb', line 51 def @message end |