Version: dev

domain_unit_mismatch_error

Stable error · Flatten

Tier: stable · Kind: error · Topic: Flatten

JuliaTypeScriptPythonRustGo
DomainUnitMismatchErrorDomainUnitMismatchErrorDomainUnitMismatchErrornot exportednot exported

Julia

struct DomainUnitMismatchError <: EarthSciASTError
DomainUnitMismatchError(variable::String, source_units::String, target_units::String)
DomainUnitMismatchError(variable, source_units, target_units)
DomainUnitMismatchError

Raised when coupling across an Interface requires a unit conversion that was not declared by the user (§4.7.6).

Source

TypeScript

class DomainUnitMismatchError extends FlattenError
new DomainUnitMismatchError(message: string): DomainUnitMismatchError

An identity-transform variable_map bridges two variables whose declared, non-empty units differ (esm-libraries-spec §4.7.6). conversion_factor and param_to_var are exempt: the first declares the conversion explicitly, the second does not imply unit equivalence at the mapping site.

Source

Python

class DomainUnitMismatchError(FlattenError)

An Interface coupling requires a unit conversion that was not declared.

Raised by the flatten preflight when a variable_map coupling with an identity transform binds two variables whose declared, non-empty units differ (§4.7.6). Mirrors Julia’s DomainUnitMismatchError.

Source

Rust

Rust does not export this error.

Go

Go does not export this error.