# Service Control API V1 API - Class Google::Cloud::ServiceControl::V1::CheckError (v1.7.0)

1.7.0 (latest) 1.6.1 1.5.0 1.4.1 1.3.0 1.2.1 1.1.0 1.0.1 0.11.0 0.10.0 0.9.2 0.8.0 0.7.1 0.6.0 0.5.0 0.4.6 Reference documentation and code samples for the Service Control API V1 API class Google::Cloud::ServiceControl::V1::CheckError.

Defines the errors to be returned in
[google.api.servicecontrol.v1.CheckResponse.check_errors](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-CheckResponse#Google__Cloud__ServiceControl__V1__CheckResponse_check_errors_instance_ "Google::Cloud::ServiceControl::V1::CheckResponse#check_errors (method)").

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #code

    def code() -> ::Google::Cloud::ServiceControl::V1::CheckError::Code

**Returns**

- ([::Google::Cloud::ServiceControl::V1::CheckError::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-CheckError-Code)) --- The error code.

### #code=

    def code=(value) -> ::Google::Cloud::ServiceControl::V1::CheckError::Code

**Parameter**

- **value** ([::Google::Cloud::ServiceControl::V1::CheckError::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-CheckError-Code)) --- The error code.
**Returns**

- ([::Google::Cloud::ServiceControl::V1::CheckError::Code](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Cloud-ServiceControl-V1-CheckError-Code)) --- The error code.

### #detail

    def detail() -> ::String

**Returns**

- (::String) --- Free-form text providing details on the error cause of the error.

### #detail=

    def detail=(value) -> ::String

**Parameter**

- **value** (::String) --- Free-form text providing details on the error cause of the error.
**Returns**

- (::String) --- Free-form text providing details on the error cause of the error.

### #status

    def status() -> ::Google::Rpc::Status

**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Rpc-Status)) --- Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.

### #status=

    def status=(value) -> ::Google::Rpc::Status

**Parameter**

- **value** ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Rpc-Status)) --- Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.
**Returns**

- ([::Google::Rpc::Status](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-service_control-v1/latest/Google-Rpc-Status)) --- Contains public information about the check error. If available, `status.code` will be non zero and client can propagate it out as public error.

### #subject

    def subject() -> ::String

**Returns**

- (::String) --- Subject to whom this error applies. See the specific code enum for more
  details on this field. For example:

  - "project:
  - "folder:
  - "organization:

### #subject=

    def subject=(value) -> ::String

**Parameter**

- **value** (::String) ---

  Subject to whom this error applies. See the specific code enum for more
  details on this field. For example:
  - "project:
  - "folder:
  - "organization:
**Returns**

- (::String) --- Subject to whom this error applies. See the specific code enum for more
  details on this field. For example:

  - "project:
  - "folder:
  - "organization: