Errors#

The exception types the framework raises. All inherit from a single base, so you can catch every framework error with one except clause or narrow to a specific failure.

For when each one is raised and how to handle it, see the Errors guide.

exception bootstack.errors.BootstackError#

Bases: Exception

Base class for all public API errors.

exception bootstack.errors.DuplicateIdError#

Bases: BootstackError

Raised when a data source receives a record whose id already exists.

Record ids must be unique — they identify rows for selection and events.

exception bootstack.errors.ParentResolutionError#

Bases: BootstackError

Raised when a widget cannot resolve its parent.

exception bootstack.errors.SerializationError#

Bases: BootstackError

Raised when a file-backed store or data source receives a value it cannot persist.

File- and database-backed sources carry non-scalar fields as JSON, and Store persists its values as JSON, so values must be JSON-serializable (scalars, lists, dicts). Store arbitrary Python objects in an in-memory source instead.

exception bootstack.errors.UnknownEventError#

Bases: BootstackError

Raised by widget.on(name, ...) when name cannot be resolved.