Version: dev

float_key_error

Stable error · Relational keys and geometry

Tier: stable · Kind: error · Topic: Relational keys and geometry

JuliaTypeScriptPythonRustGo
not exportednot exportedFloatKeyErrorFloatKeyErrornot exported

Julia

Julia does not export this error.

TypeScript

TypeScript does not export this error.

Python

class FloatKeyError(EarthSciAstError)

Raised when a relational key contains a floating-point component.

Violates CONFORMANCE_SPEC.md §5.5.1 rule 1 (“floats are forbidden in keys”). Normalise the value to an integer / categorical ID before the build-time relational pre-pass.

Source

Rust

pub struct FloatKeyError(pub String);

Raised when a relational key contains a floating-point (or otherwise non-integer / out-of-domain) component, violating CONFORMANCE_SPEC.md §5.5.1 rule 1 (“floats are forbidden in keys”). Normalise the value to an integer / categorical ID before the build-time pre-pass.

In Rust rule 1 is enforced by construction — Key simply has no float variant — so this error only arises at the untyped JSON boundary (Key::try_from_json), the analogue of the Julia/Python reference’s per-primitive assert_key runtime check.

Source · Rust docs

Go

Go does not export this error.