aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/exceptions.py
diff options
context:
space:
mode:
authorGravatar Izan <[email protected]>2021-12-30 23:41:58 +0000
committerGravatar Izan <[email protected]>2021-12-30 23:41:58 +0000
commit17bcd45c68f144f3b88fdfdf05bd0db654c0322e (patch)
treead07a6a449a322165d7246699908256c2df7a047 /bot/utils/exceptions.py
parentMigrate to `og_blurple` (diff)
parentMerge pull request #994 from python-discord/logging-in-AoC-completer-task (diff)
Merge remote-tracking branch 'origin/main' into main
# Conflicts: # bot/exts/holidays/halloween/candy_collection.py
Diffstat (limited to 'bot/utils/exceptions.py')
-rw-r--r--bot/utils/exceptions.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/bot/utils/exceptions.py b/bot/utils/exceptions.py
index bf0e5813..3cd96325 100644
--- a/bot/utils/exceptions.py
+++ b/bot/utils/exceptions.py
@@ -15,3 +15,10 @@ class APIError(Exception):
self.api = api
self.status_code = status_code
self.error_msg = error_msg
+
+
+class MovedCommandError(Exception):
+ """Raised when a command has moved locations."""
+
+ def __init__(self, new_command_name: str):
+ self.new_command_name = new_command_name