API reference

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

C

classSceneTransitionLifecycleError

@codexo/exojs / core / stable

Thrown when a SceneTransitionSession or SceneTransitionEnvironment violates the transition lifecycle contract: - `'commit-reentrant'` - SceneTransitionEnvironment.commit was called a second time on the same session. Dev-mode only; a production build no-ops the second call instead of throwing. - `'done-before-commit'` - the session reported SceneTransitionSession.done `true` while SceneTransitionEnvironment.committed was still `false`. Always thrown, dev and production - the navigation aborts and the session is destroyed. - `'aborted'` - the owning `SceneDirector` was destroyed while this session was still active. Always thrown.

5
props
0
methods
0
events
Import
import { SceneTransitionLifecycleError } from '@codexo/exojs'

Thrown when a SceneTransitionSession or SceneTransitionEnvironment violates the transition lifecycle contract: - `'commit-reentrant'` - SceneTransitionEnvironment.commit was called a second time on the same session. Dev-mode only; a production build no-ops the second call instead of throwing. - `'done-before-commit'` - the session reported SceneTransitionSession.done `true` while SceneTransitionEnvironment.committed was still `false`. Always thrown, dev and production - the navigation aborts and the session is destroyed. - `'aborted'` - the owning `SceneDirector` was destroyed while this session was still active. Always thrown.

Constructors1
new(reason: "aborted" | "commit-reentrant" | "done-before-commit"): SceneTransitionLifecycleError
Properties5
cause?: unknown
message: string
name: string
reason: "aborted" | "commit-reentrant" | "done-before-commit"
stack?: string
Source