Exceptions¶
-
exception
TagScriptEngine.exceptions.TagScriptError[source]¶ Bases:
ExceptionBase class for all module errors.
-
exception
TagScriptEngine.exceptions.WorkloadExceededError[source]¶ Bases:
TagScriptEngine.exceptions.TagScriptErrorRaised when the interpreter goes over its passed character limit.
-
exception
TagScriptEngine.exceptions.ProcessError(error: Exception, response: Response, interpreter: Interpreter)[source]¶ Bases:
TagScriptEngine.exceptions.TagScriptErrorRaised when an exception occurs during interpreter processing.
-
response¶ The incomplete response that was being processed when the exception occurred.
- Type:
-
interpreter¶ The interpreter used for processing.
- Type:
-
-
exception
TagScriptEngine.exceptions.EmbedParseError[source]¶ Bases:
TagScriptEngine.exceptions.TagScriptErrorRaised if an exception occurs while attempting to parse an embed.
-
exception
TagScriptEngine.exceptions.BadColourArgument(argument: str)[source]¶ Bases:
TagScriptEngine.exceptions.EmbedParseErrorRaised when the passed input fails to convert to
discord.Colour.
-
exception
TagScriptEngine.exceptions.StopError(message: str)[source]¶ Bases:
TagScriptEngine.exceptions.TagScriptErrorRaised by the StopBlock to stop processing.
-
exception
TagScriptEngine.exceptions.CooldownExceeded(message: str, cooldown: discord.app_commands.checks.Cooldown, key: str, retry_after: float)[source]¶ Bases:
TagScriptEngine.exceptions.StopErrorRaised by the cooldown block when a cooldown is exceeded.
-
cooldown¶ The cooldown bucket with information on the cooldown.
- Type:
discord.ext.commands.Cooldown
-