[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Cloud Spanner API - Class Google::Cloud::Spanner::Status (v2.27.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.27.0 (latest)](/ruby/docs/reference/google-cloud-spanner/latest/Google-Cloud-Spanner-Status)\n- [2.26.0](/ruby/docs/reference/google-cloud-spanner/2.26.0/Google-Cloud-Spanner-Status)\n- [2.25.0](/ruby/docs/reference/google-cloud-spanner/2.25.0/Google-Cloud-Spanner-Status)\n- [2.24.0](/ruby/docs/reference/google-cloud-spanner/2.24.0/Google-Cloud-Spanner-Status)\n- [2.23.0](/ruby/docs/reference/google-cloud-spanner/2.23.0/Google-Cloud-Spanner-Status)\n- [2.22.0](/ruby/docs/reference/google-cloud-spanner/2.22.0/Google-Cloud-Spanner-Status)\n- [2.21.0](/ruby/docs/reference/google-cloud-spanner/2.21.0/Google-Cloud-Spanner-Status)\n- [2.20.0](/ruby/docs/reference/google-cloud-spanner/2.20.0/Google-Cloud-Spanner-Status)\n- [2.19.1](/ruby/docs/reference/google-cloud-spanner/2.19.1/Google-Cloud-Spanner-Status)\n- [2.18.1](/ruby/docs/reference/google-cloud-spanner/2.18.1/Google-Cloud-Spanner-Status)\n- [2.17.0](/ruby/docs/reference/google-cloud-spanner/2.17.0/Google-Cloud-Spanner-Status)\n- [2.16.1](/ruby/docs/reference/google-cloud-spanner/2.16.1/Google-Cloud-Spanner-Status)\n- [2.15.0](/ruby/docs/reference/google-cloud-spanner/2.15.0/Google-Cloud-Spanner-Status)\n- [2.14.0](/ruby/docs/reference/google-cloud-spanner/2.14.0/Google-Cloud-Spanner-Status)\n- [2.13.0](/ruby/docs/reference/google-cloud-spanner/2.13.0/Google-Cloud-Spanner-Status)\n- [2.12.1](/ruby/docs/reference/google-cloud-spanner/2.12.1/Google-Cloud-Spanner-Status)\n- [2.11.0](/ruby/docs/reference/google-cloud-spanner/2.11.0/Google-Cloud-Spanner-Status) \nReference documentation and code samples for the Cloud Spanner API class Google::Cloud::Spanner::Status.\n\nStatus\n------\n\nRepresents a logical error model from the Spanner service, containing an\nerror code, an error message, and optional error details. \n\nInherits\n--------\n\n- Object\n\nExample\n-------\n\n```ruby\nrequire \"google/cloud/spanner\"\n\nspanner = Google::Cloud::Spanner.new\n\njob = spanner.create_database \"my-instance\",\n \"my-new-database\"\njob.wait_until_done!\n\nif job.error?\n status = job.error\nend\n```\n\nMethods\n-------\n\n### #code\n\n def code() -\u003e Integer\n\nThe status code, which should be an enum value of\n[google.rpc.Code](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto). \n**Returns**\n\n- (Integer) --- the current value of code\n\n### #code=\n\n def code=(value) -\u003e Integer\n\nThe status code, which should be an enum value of\n[google.rpc.Code](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto). \n**Parameter**\n\n- **value** (Integer) --- the newly set value \n**Returns**\n\n- (Integer) --- the newly set value\n\n### #description\n\n def description() -\u003e String\n\nThe human-readable description for the status\ncode, which should be an enum value of\n[google.rpc.Code](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto).\nFor example, `INVALID_ARGUMENT`. \n**Returns**\n\n- (String) --- the current value of description\n\n### #description=\n\n def description=(value) -\u003e String\n\nThe human-readable description for the status\ncode, which should be an enum value of\n[google.rpc.Code](https://github.com/googleapis/googleapis/blob/master/google/rpc/code.proto).\nFor example, `INVALID_ARGUMENT`. \n**Parameter**\n\n- **value** (String) --- the newly set value \n**Returns**\n\n- (String) --- the newly set value\n\n### #details\n\n def details() -\u003e Array, nil\n\nA list of messages that carry the error\ndetails. \n**Returns**\n\n- (Array, nil) --- the current value of details\n\n### #details=\n\n def details=(value) -\u003e Array, nil\n\nA list of messages that carry the error\ndetails. \n**Parameter**\n\n- **value** (Array, nil) --- the newly set value \n**Returns**\n\n- (Array, nil) --- the newly set value\n\n### #message\n\n def message() -\u003e String\n\nA developer-facing error message, which should be\nin English. \n**Returns**\n\n- (String) --- the current value of message\n\n### #message=\n\n def message=(value) -\u003e String\n\nA developer-facing error message, which should be\nin English. \n**Parameter**\n\n- **value** (String) --- the newly set value \n**Returns**\n\n- (String) --- the newly set value"]]