Skip to content

alicebot.adapter.onebot.exceptions

OneBot 适配器异常。

class OneBotException

Bases: alicebot.exceptions.AdapterException

OneBot 异常基类。

method __init__(self, /, *args, **kwargs) {#Exception.__init__}

Initialize self. See help(type(self)) for accurate signature.

  • Arguments

    • args

    • kwargs

class NetworkError

Bases: alicebot.adapter.onebot.exceptions.OneBotException

网络异常。

method __init__(self, /, *args, **kwargs) {#Exception.__init__}

Initialize self. See help(type(self)) for accurate signature.

  • Arguments

    • args

    • kwargs

class ActionFailed

Bases: alicebot.adapter.onebot.exceptions.OneBotException

API 请求成功响应,但响应表示 API 操作失败。

method __init__(self, resp) {#ActionFailed.__init__}

初始化。

  • Arguments

    • resp (Any) - 返回的响应。
  • Returns

    Type: None

class ApiTimeout

Bases: alicebot.adapter.onebot.exceptions.OneBotException

API 请求响应超时。

method __init__(self, /, *args, **kwargs) {#Exception.__init__}

Initialize self. See help(type(self)) for accurate signature.

  • Arguments

    • args

    • kwargs

Released under the MIT License.