Exceptions¶
This page lists all the custom exceptions that are raised by the OTR bot.
Exceptions related to the otrbot client.¶
-
exception
otrbot.exceptions.client.
JidNotKnown
(jid=None)¶ This exception is raised when a JID is not in the client’s _sessions variable when it should be.
Exceptions related to the LTI interface¶
-
exception
otrbot.exceptions.lti.
BotNotStarted
¶ Raised if BOT is still None when the server is started. It should contain a reference to the OTR bot.
Exceptions related to the state machine.¶
-
exception
otrbot.exceptions.statemachine.
StateDoesNotExist
(state='undefined')¶ Raise this exception when a state is request that does not exist.
-
exception
otrbot.exceptions.statemachine.
CannotHandle
(event='undefined', state='undefined')¶ Raise this exception when an event that can’t be handled is called.
-
exception
otrbot.exceptions.statemachine.
ActionNotAllowed
(action='undefined', state='undefined')¶ Raise this exception when an action is run that is not allowed by the current state.