Exceptions

exception bTagScript.exceptions.TagScriptError[source]

Bases: Exception

Base class for all module errors.

exception bTagScript.exceptions.WorkloadExceededError[source]

Bases: TagScriptError

Raised when the interpreter goes over its passed character limit.

exception bTagScript.exceptions.ProcessError(error: Exception, response: Response, interpreter: Interpreter)[source]

Bases: TagScriptError

Raised when an exception occurs during interpreter processing.

original

The original exception that occurred during processing.

Type

Exception

response

The incomplete response that was being processed when the exception occurred.

Type

Response

interpreter

The interpreter used for processing.

Type

Interpreter

exception bTagScript.exceptions.EmbedParseError[source]

Bases: TagScriptError

Raised if an exception occurs while attempting to parse an embed.

exception bTagScript.exceptions.BadColourArgument(argument: str)[source]

Bases: EmbedParseError

Raised when the passed input fails to convert to discord.Colour.

argument

The invalid input.

Type

str

exception bTagScript.exceptions.StopError(message: str)[source]

Bases: TagScriptError

Raised by the StopBlock to stop processing.

message

The stop error message.

Type

str

exception bTagScript.exceptions.CooldownExceeded(message: str, cooldown: Cooldown, key: str, retry_after: float)[source]

Bases: StopError

Raised by the cooldown block when a cooldown is exceeded.

message

The cooldown error message.

Type

str

cooldown

The cooldown bucket with information on the cooldown.

Type

discord.ext.commands.Cooldown

key

The cooldown key that reached its cooldown.

Type

str

retry_after

The seconds left til the cooldown ends.

Type

float

exception bTagScript.exceptions.BlocknameDuplicateError(blockname: str)[source]

Bases: TagScriptError

Raised when a block’s name is duplicated when passed to the interpreter

blockname

The blockname that was duplicated

Type

str