# ClientError 异常

## 简要

该异常指示 Tencent Cloud SDK for Python 提供的通用或抽象产品客户端错误，与其客户端相关联的异常类型将基于此异常类型。

```python
class ClientError(Error)
```

继承：`tencent.cloud.core.errors.Error` 类

{% hint style="danger" %}
请注意，除非必要，否则直接捕获该异常或许并不是一个好主意。相反，您应该捕获您预期之内的异常并处理它。
{% endhint %}

## 适用于

#### Tencent Cloud SDK for Python

产品软件包：tencent-cloud-sdk-core >= 0.1.1


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://smallso.gitbook.io/tencent-cloud-sdk/python-docs/other-products/exceptions/client-error.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
