diff options
| author | Rapptz <[email protected]> | 2019-03-19 07:35:56 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-19 09:23:11 -0400 |
| commit | d9e54d7dd36368bb97b3c31225901ba80cb81a62 (patch) | |
| tree | 1254d4ea7643afa9c0912d477598bd90c5f49601 /discord/backoff.py | |
| parent | [commands] Add Bot.reload_extension for atomic loading. (diff) | |
| download | discord.py-d9e54d7dd36368bb97b3c31225901ba80cb81a62.tar.xz discord.py-d9e54d7dd36368bb97b3c31225901ba80cb81a62.zip | |
[commands] Redesign extension exception flow.
Instead of raising a whole variety of exceptions, they are now wrapped
into ExtensionError derived classes.
* ExtensionAlreadyLoaded
* Raised when an extension is already loaded in Bot.load_extension
* ExtensionNotLoaded
* Raised when an extension is not loaded, e.g. Bot.unload_extension
* NoEntryPointError
* Raised when an extension does not have a `setup` function.
* ExtensionFailed
* Raised when an extension's `setup` function fails.
* ExtensionNotFound
* Raised when an extension's module import fails.
Diffstat (limited to 'discord/backoff.py')
0 files changed, 0 insertions, 0 deletions