A stable recoverable error emitted by checked numeric, byte, and tensor operations.
Signature
enum DataError { ... }Each case name and description comes from the Rust SDK data-error registry.
Cases
TypeMismatch- An operation requires operands with the same declared element type.
InvalidLiteral- Text is not a valid literal of the requested type.
InvalidUtf8- Bytes are not valid UTF-8 where a text value is required.
Overflow- A value or checked integer operation exceeds the destination range.
NonFinite- Infinity and NaN cannot enter a portable data value.
InexactConversion- A conversion would round, truncate, or discard a signed zero.
DivisionByZero- Division or remainder has a zero divisor.
InvalidShape- Shape, rank, or buffer length is not a valid tensor layout.
ShapeMismatch- Shapes cannot participate in the requested operation.
Bounds- An index is outside the requested value.
InvalidSlice- Slice selectors are malformed, including a zero step.
InvalidMetadata- Decoded media metadata disagrees with its payload.
AllocationLimit- A checked allocation exceeds the portable data limit.
Examples
Handle invalid UTF-8
Decoding reports InvalidUtf8 instead of replacing malformed bytes.
Show a QR code for your glasses, or send a link to another browser. You can keep working here.
Sharing starts a fresh run of the last compiled code. Your editor draft stays here.
Join a session
Open an invitation link, or paste a link or code from the other device.
On RayNeo, open Menu → Connect live and scan this code. In another browser, open the invitation link below.
Or enter this code:
Waiting for another device. You can keep working while it connects.
Browsers can edit code; every device can use scene controls. The device that started the session controls playback.
Connection settings
A full invitation link includes its host. With a code alone, both devices need the same live host. Pairing setup
No output.
- Executed source spans appear here.
Expected output
InvalidUtf8
Rust definition
konjure_sdk::data::DataError, carried in Res error payloads.