# Cloud Shell V1 API - Class Google::Cloud::Shell::V1::CloudShellErrorDetails (v1.8.0)

1.8.0 (latest) 1.7.1 1.6.0 1.5.1 1.4.0 1.3.0 1.2.1 1.1.0 1.0.1 0.8.0 0.7.2 0.6.0 0.5.1 0.4.0 0.3.0 0.2.0 0.1.4 Reference documentation and code samples for the Cloud Shell V1 API class Google::Cloud::Shell::V1::CloudShellErrorDetails.

Cloud-shell specific information that will be included as details in failure
responses.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::Google::Cloud::Shell::V1::CloudShellErrorDetails::CloudShellErrorCode

**Returns**

- ([::Google::Cloud::Shell::V1::CloudShellErrorDetails::CloudShellErrorCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-shell-v1/latest/Google-Cloud-Shell-V1-CloudShellErrorDetails-CloudShellErrorCode)) --- Code indicating the specific error the occurred.

### #code=

    def code=(value) -> ::Google::Cloud::Shell::V1::CloudShellErrorDetails::CloudShellErrorCode

**Parameter**

- **value** ([::Google::Cloud::Shell::V1::CloudShellErrorDetails::CloudShellErrorCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-shell-v1/latest/Google-Cloud-Shell-V1-CloudShellErrorDetails-CloudShellErrorCode)) --- Code indicating the specific error the occurred.
**Returns**

- ([::Google::Cloud::Shell::V1::CloudShellErrorDetails::CloudShellErrorCode](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-shell-v1/latest/Google-Cloud-Shell-V1-CloudShellErrorDetails-CloudShellErrorCode)) --- Code indicating the specific error the occurred.