Exceptions

exception TagScriptEngine.exceptions.TagScriptError[source]

Bases: Exception

Base class for all module errors.

exception TagScriptEngine.exceptions.WorkloadExceededError[source]

Bases: TagScriptError

Raised when the interpreter goes over its passed character limit.

exception TagScriptEngine.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 TagScriptEngine.exceptions.EmbedParseError[source]

Bases: TagScriptError

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

exception TagScriptEngine.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 TagScriptEngine.exceptions.StopError(message: str)[source]

Bases: TagScriptError

Raised by the StopBlock to stop processing.

message

The stop error message.

Type:

str

exception TagScriptEngine.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