Skip to content

Interface: StateError

One rejected write, reported per component id.

set stays fire-and-forget: it merges many ids at once, and on the iframe surface the host is a different document, so there is no return value that could carry a per-id outcome back. Rejections are therefore reported — to onError on the SDK surface, as a ridge:error message on the iframe one — which gives both surfaces the same channel and lets a write be partially accepted without inventing a result type that only one of them could deliver.

Properties

PropertyTypeDescription
codeStateErrorCode-
idstringThe component id whose write was rejected.
messagestringHuman-readable, already prefixed [Ridge AI]. For logs and dev tooling.

Ridge AI