mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-12-07 18:02:31 -05:00
Some old work and some new (#3362)
* Some old work, some new * c:style * remove wrong version
This commit is contained in:
21
redbot/cogs/mutes/errors.py
Normal file
21
redbot/cogs/mutes/errors.py
Normal file
@@ -0,0 +1,21 @@
|
||||
class ControlFlowException(Exception):
|
||||
"""
|
||||
The base exception for any exceptions used solely for control flow
|
||||
If this or any subclass of this ever propogates, something has gone wrong.
|
||||
"""
|
||||
|
||||
pass
|
||||
|
||||
|
||||
class NoChangeError(ControlFlowException):
|
||||
pass
|
||||
|
||||
|
||||
class PermError(ControlFlowException):
|
||||
"""
|
||||
An error to be raised when a permission issue is detected prior to an api call being made
|
||||
"""
|
||||
|
||||
def __init__(self, friendly_error=None, *args):
|
||||
self.friendly_error = friendly_error
|
||||
super().__init__(*args)
|
||||
Reference in New Issue
Block a user