# Class ErrorHandlingSettings (0.7.0)

0.7.0 (latest) 0.6.0 0.5.0 0.4.0 0.3.0

    ErrorHandlingSettings(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `error_handling_strategy` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ErrorHandlingSettings.ErrorHandlingStrategy` Optional. The strategy to use for error handling. |
| `fallback_response_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ErrorHandlingSettings.FallbackResponseConfig` Optional. Configuration for handling fallback responses. |
| `end_session_config` | `https://docs.cloud.google.com/python/docs/reference/google-cloud-ces/latest/google.cloud.ces_v1beta.types.ErrorHandlingSettings.EndSessionConfig` Optional. Configuration for ending the session in case of system errors (e.g. LLM errors). |

## Classes

### EndSessionConfig

    EndSessionConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

### ErrorHandlingStrategy

    ErrorHandlingStrategy(value)

Defines the strategy for handling errors.

### FallbackResponseConfig

    FallbackResponseConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)

Configuration for handling fallback responses.