Class EngineError

This class extends the native Error class to work with the engine.

It also dispatches a custom event named ineka:error on the engine container element to make it easier to display errors or create debugging tools.

The syntax for all custom events dispatched by Ineka uses the prefix ineka: to prevent collisions with any other library.

Hierarchy

  • Error
    • EngineError

Constructors

Properties

cause?: unknown
code: string | number

Custom code for the error.

engine: Engine

Engine that is throwing the error.

message: string
name: string
stack?: string
prepareStackTrace?: ((err: Error, stackTraces: CallSite[]) => any)

Optional override for formatting stack traces

stackTraceLimit: number

Methods

  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • OptionalconstructorOpt: Function

    Returns void