curious.commands.exc

Defines commands-specific exceptions.

Exceptions

CommandInvokeError(ctx) Raised when a command has an error during invokation.
CommandRateLimited(context, func, limit, …) Raised when a command is ratelimited.
CommandsError
ConditionsFailedError(ctx, check) Raised when conditions fail for a command.
ConversionFailedError(ctx, arg, to_type, message) Raised when conversion fails.
MissingArgumentError(ctx, arg) Raised when a command is missing an argument.
exception curious.commands.exc.CommandInvokeError(ctx)[source]

Bases: curious.commands.exc.CommandsError

Raised when a command has an error during invokation.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception curious.commands.exc.CommandRateLimited(context, func, limit, bucket: typing.Tuple[int, float])[source]

Bases: curious.commands.exc.CommandsError

Raised when a command is ratelimited.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception curious.commands.exc.ConditionsFailedError(ctx, check)[source]

Bases: curious.commands.exc.CommandsError

Raised when conditions fail for a command.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception curious.commands.exc.ConversionFailedError(ctx, arg: str, to_type: type, message: str = 'Unknown error')[source]

Bases: curious.commands.exc.CommandsError

Raised when conversion fails.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.

exception curious.commands.exc.MissingArgumentError(ctx, arg)[source]

Bases: curious.commands.exc.CommandsError

Raised when a command is missing an argument.

with_traceback()

Exception.with_traceback(tb) – set self.__traceback__ to tb and return self.