domain_unit_mismatch_error
Stable error · Flatten
Tier: stable · Kind: error · Topic: Flatten
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
DomainUnitMismatchError | DomainUnitMismatchError | DomainUnitMismatchError | not exported | not 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).
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.
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.
Rust
Rust does not export this error.
Go
Go does not export this error.