异常

exception ehforwarderbot.exceptions.EFBException[源代码]

基类:Exception

用来表示来自 EFB 框架异常的一个通用类。

exception ehforwarderbot.exceptions.EFBChatNotFound[源代码]

基类:ehforwarderbot.exceptions.EFBException

当指定的会话无法找到时由从端抛出。

可以由任何涉及会话或消息的方法来抛出。

exception ehforwarderbot.exceptions.EFBChannelNotFound[源代码]

基类:ehforwarderbot.exceptions.EFBException

当已发送的消息传递到不存在的信道时由协调器抛出。

exception ehforwarderbot.exceptions.EFBMessageError[源代码]

基类:ehforwarderbot.exceptions.EFBException

在发送消息或状态的过程中发生其他错误时,由从端抛出。

可以在 Channel.send_message() 和 Channel.send_status() 中被抛出。

exception ehforwarderbot.exceptions.EFBMessageNotFound[源代码]

基类:ehforwarderbot.exceptions.EFBMessageError

当指定的消息无法找到时由从端抛出。

可以在 Channel.send_message()(需要编辑的消息、目标消息无法找到)和 EFBChannel.send_status()(需要删除的消息无法找到)中被抛出。

exception ehforwarderbot.exceptions.EFBMessageTypeNotSupported[源代码]

基类:ehforwarderbot.exceptions.EFBMessageError

当指定的消息类型不被支持时由从端抛出。

可以在 Channel.send_message() 中被抛出。

exception ehforwarderbot.exceptions.EFBOperationNotSupported[源代码]

基类:ehforwarderbot.exceptions.EFBMessageError

当聊天操作不被支持时由从端抛出。例如:无法编辑消息,无法删除消息。

可以在 Channel.send_message() 和 Channel.send_status() 中被抛出。

exception ehforwarderbot.exceptions.EFBMessageReactionNotPossible[源代码]

基类:ehforwarderbot.exceptions.EFBException

当主端发出的对消息回应的请求无法被处理时,由从端抛出。

可以在 Channel.send_status() 中被抛出。