Kept in a dedicated lightweight module so consumers like
ChildBridgeMatterMessageHandler can instanceof-check the sentinel
(MatterAccessoryNotOnBridgeError) without dragging in the heavy
@matter/* runtime imports that live in ./types.ts.
IMPORTANT: never add a runtime @matter/* import to this file —
matterLazyLoading.spec.ts treats it as a lightweight module that
core / lightweight consumers are allowed to import eagerly.
Not to be confused with ./errors.ts, which holds the plugin-facing
MatterStatus.* Matter protocol status errors (those subclass
@matter/main's StatusResponseError and are intentionally heavy).
Internal Matter error classes
Kept in a dedicated lightweight module so consumers like
ChildBridgeMatterMessageHandlercaninstanceof-check the sentinel (MatterAccessoryNotOnBridgeError) without dragging in the heavy@matter/*runtime imports that live in./types.ts.IMPORTANT: never add a runtime
@matter/*import to this file —matterLazyLoading.spec.tstreats it as a lightweight module that core / lightweight consumers are allowed to import eagerly.Not to be confused with
./errors.ts, which holds the plugin-facingMatterStatus.*Matter protocol status errors (those subclass@matter/main'sStatusResponseErrorand are intentionally heavy).