Exceptions

exception ehforwarderbot.exceptions.EFBException[source]

Bases: Exception

A general class to indicate that the exception is from EFB framework.

exception ehforwarderbot.exceptions.EFBChatNotFound[source]

Bases: ehforwarderbot.exceptions.EFBException

Raised by a slave channel when a chat indicated is not found.

Can be raised by any method that involves a chat or a message.

exception ehforwarderbot.exceptions.EFBChannelNotFound[source]

Bases: ehforwarderbot.exceptions.EFBException

Raised by the coordinator when the message sent delivers to a missing channel.

exception ehforwarderbot.exceptions.EFBMessageError[source]

Bases: ehforwarderbot.exceptions.EFBException

Raised by slave channel for any other error occurred when sending a message or a status.

Can be raised in EFBChannel.send_message() and EFBChannel.send_status().

exception ehforwarderbot.exceptions.EFBMessageNotFound[source]

Bases: ehforwarderbot.exceptions.EFBMessageError

Raised by a slave channel when a message indicated is not found.

Can be raised in EFBChannel.send_message() (edited message / target message not found) and in EFBChannel.send_status() (message to delete is not found).

exception ehforwarderbot.exceptions.EFBMessageTypeNotSupported[source]

Bases: ehforwarderbot.exceptions.EFBMessageError

Raised by a slave channel when the indicated message type is not supported.

Can be raised in EFBChannel.send_message().

exception ehforwarderbot.exceptions.EFBOperationNotSupported[source]

Bases: ehforwarderbot.exceptions.EFBMessageError

Raised by slave channels when a chat operation is not supported. E.g.: cannot edit message, cannot delete message.

Can be raised in EFBChannel.send_message() and EFBChannel.send_status().