Exceptions

The following exceptions are used by Anjani.

exception Anjani.AnjaniException

Base exception class for Anjani. This means that you can catch all exception of Anjani with this.

exception Anjani.EventDispatchErrror

Exception that is raised when an event dispatcher raised an exception.

exception Anjani.CommandHandlerError

Exception that is raised when a command handler raised an exception.

exception Anjani.CommandInvokeError

Exception that is raised when a command that are being invoked raised an exception.

exception Anjani.BadArgument

Exception that raised when argument parsing of a message encountered a failure.

exception Anjani.ConversionError (converter, origin)

Base exception class for any argument conversion errors.

  • converter (Converter): The converter that failed.
  • origin (Exception): The original exception that was raised.

exception Anjani.BadBoolArgument

Exception that is raised when a bool argument conversion fails.

exception Anjani.BadResult

Exception that is raised when an argument conversion results is not a valid types.

exception Anjani.BackupError

Exception that is raised when a backup operation receive unexpected data type.

exception Anjani.PluginLoadError

Base exception class for every Plugin errors.

exception Anjani.ExistingPluginError (old_plugin, new_plugin)

Exception that is raised when a command registered more then one.

  • old_plugin (Plugin): The old plugin that is being replaced.
  • new_plugin (Plugin): The new plugin that is attemting to replace the old one.

exception Anjani.ExistingCommandError (old_cmd, new_cmd, alias)

Exception that is raised when two same Plugin name registered.

  • old_cmd (~Anjani.Command): The old command that is being replaced.
  • new_cmd (~Anjani.Command): The new command that is attemting to replace the old one.

Exception Tree