fivem-ts

a library to speed up the development of Fivem scripts and frameworks


Project maintained by Purpose-Dev Hosted on GitHub Pages — Theme by mattgraham

fivem-ts - Documentation v0.7.5Docs


fivem-ts - Documentation v0.7.5 / Shared / StackUnderflowError

Class: StackUnderflowError

Represents an error thrown when an operation is attempted on an empty stack.

This specific type of error should be thrown to indicate that the stack does not have enough elements to satisfy the requested operation.

Param

Custom error message.

Extends

Constructors

new StackUnderflowError()

new StackUnderflowError(message): StackUnderflowError

Parameters

message: string = 'Stack Underflow: The stack is empty'

Returns

StackUnderflowError

Overrides

Error.constructor

Defined in

shared/ds/stack/StackErrors.ts:26