bot.utils.exceptions
#
Custom Exception(s).
Module Contents#
- exception bot.utils.exceptions.APIError(api: str, status_code: int, error_msg: str | None = None)[source]#
Bases:
Exception
Raised when an external API (eg. Wikipedia) returns an error response.
- exception bot.utils.exceptions.MovedCommandError(new_command_name: str)[source]#
Bases:
Exception
Raised when a command has moved locations.
- exception bot.utils.exceptions.LockedResourceError(resource_type: str, resource_id: collections.abc.Hashable)[source]#
Bases:
RuntimeError
Exception raised when an operation is attempted on a locked resource.
- `type` -- name of the locked resource's type
- `id` -- ID of the locked resource