Tagscript

WorkloadExceededError

TagScript


Class: WorkloadExceededError

Defined in: packages/tagscript/src/lib/Errors/index.ts:70

Raised out of run when a render produces more characters than charLimit allows.

Unlike the other two this is not rendered into the output, it rejects, because a render that blew its budget has no trustworthy output to show.

Extends

Constructors

Constructor

new WorkloadExceededError(limit, attempted): WorkloadExceededError

Defined in: packages/tagscript/src/lib/Errors/index.ts:83

Parameters

limit

number

attempted

number

Returns

WorkloadExceededError

Overrides

TagScriptError.constructor

Properties

attempted

readonly attempted: number

Defined in: packages/tagscript/src/lib/Errors/index.ts:81

The number of characters the render had reached when it was stopped.


cause?

optional cause?: unknown

Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es2022.error.d.ts:24

Inherited from

TagScriptError.cause


limit

readonly limit: number

Defined in: packages/tagscript/src/lib/Errors/index.ts:76

The limit that was set.


message

message: string

Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1075

Inherited from

TagScriptError.message


name

name: string = 'WorkloadExceededError'

Defined in: packages/tagscript/src/lib/Errors/index.ts:71

Overrides

TagScriptError.name


stack?

optional stack?: string

Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.es5.d.ts:1076

Inherited from

TagScriptError.stack

Methods

isError()

static isError(error): error is Error

Defined in: node_modules/.bun/typescript@6.0.3/node_modules/typescript/lib/lib.esnext.error.d.ts:21

Indicates whether the argument provided is a built-in Error instance or not.

Parameters

error

unknown

Returns

error is Error

Inherited from

TagScriptError.isError

On this page