Reference documentation and code samples for the google-cloud-bigtable class Google::Cloud::Bigtable::Status.
Status
Represents a logical error model from the Bigtable service, containing an error code, an error message, and optional error details.
Inherits
- Object
Example
require "google/cloud/bigtable" bigtable = Google::Cloud::Bigtable.new table = bigtable.table "my-instance", "my-table" entries = [] entries << table.new_mutation_entry("row-1").set_cell("cf1", "field1", "XYZ") entries << table.new_mutation_entry("row-2").set_cell("cf1", "field1", "ABC") responses = table.mutate_rows entries responses.each do |response| puts response.status.description end
Methods
#code
def code() -> Integer
The status code, which should be an enum value of google.rpc.Code.
- (Integer) — the current value of code
#code=
def code=(value) -> Integer
The status code, which should be an enum value of google.rpc.Code.
- value (Integer) — the newly set value
- (Integer) — the newly set value
#description
def description() -> String
The human-readable description for the status code, which should be an enum value of
google.rpc.Code. For example,
INVALID_ARGUMENT
.
- (String) — the current value of description
#description=
def description=(value) -> String
The human-readable description for the status code, which should be an enum value of
google.rpc.Code. For example,
INVALID_ARGUMENT
.
- value (String) — the newly set value
- (String) — the newly set value
#details
def details() -> Array<String>
A list of messages that carry the error details.
- (Array<String>) — the current value of details
#details=
def details=(value) -> Array<String>
A list of messages that carry the error details.
- value (Array<String>) — the newly set value
- (Array<String>) — the newly set value
#message
def message() -> String
A developer-facing error message, which should be in English.
- (String) — the current value of message
#message=
def message=(value) -> String
A developer-facing error message, which should be in English.
- value (String) — the newly set value
- (String) — the newly set value