0.6.0 (latest) 0.5.0 0.4.4 0.3.0 0.2.0 0.1.1 Reference documentation and code samples for the Google Cloud Ces V1 Client class ErrorHandlingSettings.

Settings to describe how errors should be handled in the app.

Generated from protobuf message `google.cloud.ces.v1.ErrorHandlingSettings`

## Namespace

Google \\ Cloud \\ Ces \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ error_handling_strategy` | `int` Optional. The strategy to use for error handling. |
| `↳ fallback_response_config` | `ErrorHandlingSettings\FallbackResponseConfig` Optional. Configuration for handling fallback responses. |
| `↳ end_session_config` | `ErrorHandlingSettings\EndSessionConfig` Optional. Configuration for ending the session in case of system errors (e.g. LLM errors). |

### getErrorHandlingStrategy

Optional. The strategy to use for error handling.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ErrorHandlingStrategy](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.ErrorHandlingSettings.ErrorHandlingStrategy.md.txt). |

### setErrorHandlingStrategy

Optional. The strategy to use for error handling.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ErrorHandlingStrategy](https://docs.cloud.google.com/php/docs/reference/cloud-ces/latest/V1.ErrorHandlingSettings.ErrorHandlingStrategy.md.txt). |

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

### getFallbackResponseConfig

Optional. Configuration for handling fallback responses.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ErrorHandlingSettings\FallbackResponseConfig|null` |   |

### hasFallbackResponseConfig

### clearFallbackResponseConfig

### setFallbackResponseConfig

Optional. Configuration for handling fallback responses.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `ErrorHandlingSettings\FallbackResponseConfig` |

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

### getEndSessionConfig

Optional. Configuration for ending the session in case of system errors
(e.g. LLM errors).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `ErrorHandlingSettings\EndSessionConfig|null` |   |

### hasEndSessionConfig

### clearEndSessionConfig

### setEndSessionConfig

Optional. Configuration for ending the session in case of system errors
(e.g. LLM errors).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `ErrorHandlingSettings\EndSessionConfig` |

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