Skip to content

Exceptions

AlreadyRegisteredError #

Bases: CrescentException

Command or exception catch function was already registered

ConverterExceptionMeta dataclass #

ConverterExceptionMeta(
    command: type[ClassCommandProto],
    option_key: str,
    value: Any,
    exception: Exception,
)

option_key instance-attribute #

option_key: str

The key of the option on the command class

value instance-attribute #

value: Any

The unconverted value

ConverterExceptions #

ConverterExceptions(errors: list[ConverterExceptionMeta])

Bases: CrescentException

One or more errors occurred while running the converters for a command.

CrescentException #

Bases: Exception

Base Exception for all exceptions Crescent throws

InteractionAlreadyAcknowledgedError #

Bases: CrescentException

Raise when an interaction is already acknowledged

PermissionsError #

Bases: CrescentException

Raise when a permission is declared in a subcommand

PluginAlreadyLoadedError #

Bases: CrescentException

A plugin is attempted to be loaded but the plugin manager already loaded the plugin.