subsystem_ref_error
Stable error · Load-time lowering and templates
Tier: stable · Kind: error · Topic: Load-time lowering and templates
| Julia | TypeScript | Python | Rust | Go |
|---|---|---|---|---|
SubsystemRefError | not exported | SubsystemRefError | not exported | not exported |
Julia
struct SubsystemRefError <: EarthSciAST._LoadDiagnostic
SubsystemRefError(code::String, message::String, path::String, file::String, details::Dict{String, Any}, ref::String, subsystem::String, parent_model::String)
SubsystemRefError(code, message, path, file, details, ref, subsystem, parent_model)
SubsystemRefError(message::AbstractString; code, ref, subsystem, parent_model, path, file, details)
SubsystemRefError <: EarthSciASTError
A §4.7 mount that cannot be resolved: its file is missing, unreadable or does
not hold exactly the component asked for, or the mounts form a cycle. code
is required (unresolved_subsystem_ref, ambiguous_subsystem_ref,
element_type_uncarried). After the common fields (see _LoadDiagnostic)
come the ref as written and, for the subsystems.<k> form, the mount site
(subsystem, parent_model), which validate renders as
/models/<parent_model>/subsystems/<subsystem>.
SubsystemRefError(message; code, ref = "", subsystem = "", parent_model = "", path = "", file = "", details = Dict())
TypeScript
TypeScript does not export this error.
Python
class SubsystemRefError(EarthSciAstError)
SubsystemRefError(message: str, code: str = '', path: str = '')
Exception raised when a subsystem reference cannot be resolved.
Carries the shared diagnostic code and JSON-Pointer path so that
earthsci_ast.validation.validate
can surface it as a structural
finding rather than an opaque parse blob at $. The cross-language
contract (tests/invalid/expected_errors.json) pins these fixtures as
"schema_errors": [] plus one coded structural error at the pointer of the
offending mount — e.g. unresolved_subsystem_ref @
/models/Atmosphere/subsystems/Missing.
Rust
Rust does not export this error.
Go
Go does not export this error.