Options
All
  • Public
  • Public/Protected
  • All
Menu

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

Index

Constructors

Properties

cause?: Error
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

Type declaration

stackTraceLimit: number

Methods

  • captureStackTrace(targetObject: object, constructorOpt?: Function): void
  • Create .stack property on a target object

    Parameters

    • targetObject: object
    • Optional constructorOpt: Function

    Returns void

Generated using TypeDoc