watcherclient.exceptions 模块¶
- watcherclient.exceptions.AmbigiousAuthSystem¶
- 异常 watcherclient.exceptions.AmbiguousAuthSystem[源代码]¶
基类:
ClientException无法使用提供的凭据获取令牌和端点。
- 异常 watcherclient.exceptions.CommandError[源代码]¶
基类:
ClientExceptionCLI 工具中的错误。
- 异常 watcherclient.exceptions.InternalServerError(message=None, details=None, response=None, request_id=None, url=None, method=None, http_status=None)[源代码]¶
基类:
HttpServerErrorHTTP 500 - 内部服务器错误。
当没有更具体的错误消息时,给出的通用错误消息。
- http_status = 500¶
- message = '内部 服务器 错误'¶
- 异常 watcherclient.exceptions.InvalidAttribute[源代码]¶
基类:
ClientException
- 异常 watcherclient.exceptions.Unauthorized(message=None, details=None, response=None, request_id=None, url=None, method=None, http_status=None)[源代码]¶
基类:
HTTPClientErrorHTTP 401 - 未授权。
类似于 403 Forbidden,但专门用于需要身份验证但身份验证失败或尚未提供的情况。
- http_status = 401¶
- message = '未授权'¶
- 异常 watcherclient.exceptions.UnsupportedVersion[源代码]¶
基础:
Exception不支持的 API 版本
指示用户正在尝试使用 API 的不受支持的版本。
- 异常 watcherclient.exceptions.ValidationError[源代码]¶
基类:
ClientExceptionAPI 客户端侧验证错误。