cyan.exception module

exception cyan.exception.CyanException[源代码]

基类:Exception

当 Cyan 出现异常时抛出。

exception cyan.exception.InvalidOperationError[源代码]

基类:cyan.exception.CyanException

当操作不合法时抛出。

exception cyan.exception.InvalidTargetError[源代码]

基类:cyan.exception.CyanException

当目标无效时抛出。

exception cyan.exception.OpenApiError(status_code: int, code: int, message: str)[源代码]

基类:cyan.exception.CyanException

当 OpenAPI 返回错误时抛出。

property code: int

错误代码。

property message: str

错误消息。

property status_code: int

HTTP 状态码。