lightbulb.exceptions

exception lightbulb.exceptions.ExecutionException[source]

Base class for exceptions that can be encountered during a command execution pipeline.

exception lightbulb.exceptions.ExecutionPipelineFailedException(causes: t.Sequence[HookFailedException | InvocationFailedException], pipeline: execution.ExecutionPipeline, context: context_.Context)[source]
exception lightbulb.exceptions.HookFailedException(cause: Exception, hook: execution.ExecutionHook)[source]

Exception raised when a command execution hook triggered a failure.

hook

The hook that triggered the failure.

exception lightbulb.exceptions.InvocationFailedException(cause: Exception)[source]

Exception raised when a command invocation function raised an error during execution.

exception lightbulb.exceptions.LightbulbException[source]

Base class for all exceptions used by lightbulb.

exception lightbulb.exceptions.LocalizationFailedException[source]

Exception raised when a command or option is marked as being localized, but a value for the name or description could not be resolved.