0.6.2 (latest) 0.6.1 0.5.3 0.4.1 0.3.0 0.2.2 0.1.2 Reference documentation and code samples for the Google Cloud Developer Connect V1 Client class ExchangeError.

Message for representing an error from exchanging OAuth tokens.

Generated from protobuf message `google.cloud.developerconnect.v1.ExchangeError`

## Namespace

Google \\ Cloud \\ DeveloperConnect \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ code` | `string` <https://datatracker.ietf.org/doc/html/rfc6749#section-5.2> - error |
| `↳ description` | `string` <https://datatracker.ietf.org/doc/html/rfc6749#section-5.2> - error_description |

### getCode

<https://datatracker.ietf.org/doc/html/rfc6749#section-5.2> - error

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setCode

<https://datatracker.ietf.org/doc/html/rfc6749#section-5.2> - error

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDescription

<https://datatracker.ietf.org/doc/html/rfc6749#section-5.2> -
error_description

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDescription

<https://datatracker.ietf.org/doc/html/rfc6749#section-5.2> -
error_description

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |