API reference
Every public class, method, and event in @codexo/exojs. Generated from source.
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): LdtkFormatErrorProperties6
cause?: unknownmessage: stringname: stringpath: stringsource: stringstack?: stringSource