API reference

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

C

classMapSpawnError

@codexo/exojs-tilemap / tilemap / stable

A spawn failed. The whole spawn is rolled back before this is thrown - no partial session exists. For `'factory-failed'` the error a factory raised is preserved as `cause`.

7
props
0
methods
0
events
Import
import { MapSpawnError } from '@codexo/exojs-tilemap'

A spawn failed. The whole spawn is rolled back before this is thrown - no partial session exists.

For `'factory-failed'` the error a factory raised is preserved as `cause`.

Constructors1
new(reason: MapSpawnErrorReasonWhy a MapSpawnError was raised., objectId: string, kind: null | string, message: string, options?: ErrorOptions): MapSpawnError
Properties7
cause?: unknown
kind: null | string
MapObjectDescriptor.kind of the object that failed.
message: string
name: "MapSpawnError"
objectId: string
MapObjectDescriptor.id of the object that failed.
stack?: string
Source