Skip to content

ErrorBoundary

Defined in: ErrorBoundary.ts:9

Wraps system and component execution. On error, disables the offending system/component and logs the error. The game loop never crashes.

new ErrorBoundary(logger): ErrorBoundary

Defined in: ErrorBoundary.ts:14

Logger

ErrorBoundary

getDisabled(): object

Defined in: ErrorBoundary.ts:52

Get all disabled systems and components for inspection.

object

components: readonly object[]

systems: readonly object[]


wrapComponent(component, fn): void

Defined in: ErrorBoundary.ts:35

Wrap a component lifecycle or update call. On throw, disables the component.

Component

() => void

void


wrapSystem(system, fn): void

Defined in: ErrorBoundary.ts:19

Wrap a system update call. On throw, disables the system.

System

() => void

void