mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
22 lines
552 B
Python
22 lines
552 B
Python
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)
|