Files
2024-10-29 15:48:53 +00:00

29 lines
615 B
Python
Executable File

__all__ = (
"RevoltError",
"HTTPError",
"ServerError",
"FeatureDisabled",
"AutumnDisabled",
"Forbidden",
)
class RevoltError(Exception):
"Base exception for revolt"
class HTTPError(RevoltError):
"Base exception for http errors"
class ServerError(RevoltError):
"Internal server error"
class FeatureDisabled(RevoltError):
"Base class for any feature disabled errors"
class AutumnDisabled(FeatureDisabled):
"The autumn feature is disabled"
class Forbidden(HTTPError):
"Missing permissions"
class NotAVoiceChannel(RevoltError):
"Channel is not a voice channel"