watcherclient.exceptions 模块

watcherclient.exceptions.AmbigiousAuthSystem

别名 AmbiguousAuthSystem

异常 watcherclient.exceptions.AmbiguousAuthSystem[源代码]

基类: ClientException

无法使用提供的凭据获取令牌和端点。

异常 watcherclient.exceptions.CommandError[源代码]

基类: ClientException

CLI 工具中的错误。

异常 watcherclient.exceptions.InternalServerError(message=None, details=None, response=None, request_id=None, url=None, method=None, http_status=None)[源代码]

基类: HttpServerError

HTTP 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)[源代码]

基类: HTTPClientError

HTTP 401 - 未授权。

类似于 403 Forbidden,但专门用于需要身份验证但身份验证失败或尚未提供的情况。

http_status = 401
message = '未授权'
异常 watcherclient.exceptions.UnsupportedVersion[源代码]

基础: Exception

不支持的 API 版本

指示用户正在尝试使用 API 的不受支持的版本。

异常 watcherclient.exceptions.ValidationError[源代码]

基类: ClientException

API 客户端侧验证错误。

watcherclient.exceptions.from_response(response, message=None, traceback=None, method=None, url=None)[源代码]

根据 httplib/requests 的响应返回一个 HttpError 实例。