API reference

Every public class, method, and event in @codexo/exojs. Generated from source.

C

classLdtkFormatError

@codexo/exojs-ldtk / ldtk / stable

Thrown when an LDtk JSON document does not match the expected shape. `source` is the URL of the file being parsed; `path` is a JSON-path-like pointer (e.g. `levels[0].layerInstances[1].gridTiles[0].px`) to the offending value, or `''` for the document root.

6
props
0
methods
0
events
Import
import { LdtkFormatError } from '@codexo/exojs-ldtk'

Thrown when an LDtk JSON document does not match the expected shape. `source` is the URL of the file being parsed; `path` is a JSON-path-like pointer (e.g. `levels[0].layerInstances[1].gridTiles[0].px`) to the offending value, or `''` for the document root.

Constructors1
new(source: string, path: string, message: string): LdtkFormatError
Properties6
cause?: unknown
message: string
name: string
path: string
source: string
stack?: string
Source