flatten_error
Stable error · Flatten
Tier: stable · Kind: error · Topic: Flatten
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
| not exported | FlattenError | FlattenError | FlattenError | not exported |
Julia
Julia does not export this error.
TypeScript
class FlattenError extends EsmDiagnosticError
new FlattenError(message: string, code?: string): FlattenError
Base class for every error flatten
raises. Mirrors Rust’s
FlattenError and Python’s FlattenError for cross-language error-name
parity.
Rust
pub enum FlattenError {
ConflictingDerivative { species: Vec<String> },
DimensionPromotion { message: String },
UnmappedDomain { systems: Vec<String>, candidate_targets: Vec<String> },
UnsupportedMapping { mapping_type: String, reason: String },
UnloweredOperator { op: String },
DomainUnitMismatch { variable: String, source_units: String, target_units: String },
DomainExtentMismatch { variable: String },
SliceOutOfDomain { coordinate: String, value: String },
CyclicPromotion { variables: Vec<String> },
VariableMapFactorWithExpression { from: String, to: String },
VariableMapExpressionMissingFrom { from: String, to: String },
VariableMapUnresolvedEndpoint { from: String, to: String, side: String, endpoint: String },
Reaction(DeriveError),
CouplingImport(DiagnosticError),
MalformedConnectorEquation { systems: String, side: String },
CoupleMultiplicativeNoTendency { target: String },
ContributionsOutOfStep { field: &'static str, entries: usize, equations: usize },
OperatorComposeNoMerge { a: String, b: String, authored: usize, unmatched: String },
OperatorComposeRequireMatchUnmatched { a: String, b: String, merged: usize, authored: usize, unmatched: String },
OperatorComposeAmbiguousBareName { a: String, b: String, b_dep: String, target: String },
MalformedLoaderSubsystem { system: String, subsystem: String, reason: String },
ExpressionTemplate(DiagnosticError),
Empty,
}
Errors raised by flatten
and flatten_model
during spec-compliant
coupled-system flattening.
Variant names are deliberately cross-language-compatible so Julia, Python, and Rust agents can report the same failure using the same error name.
Go
Go does not export this error.