Version: dev

output_error

Stable error · Runtime I/O

Tier: stable · Kind: error · Topic: Runtime I/O

JuliaTypeScriptPythonRustGo
OutputErroroutside profilenot exportedOutputErroroutside profile

Julia

struct OutputError <: EarthSciASTError
OutputError(msg::String, code::String)
OutputError(msg, code)
OutputError(msg::AbstractString)
OutputError(msg)
OutputError(msg, code)

Thrown by the streaming-output surface: an unimplemented Sink protocol method, a malformed snapshot, an output request that designates no single variable, or a call to build_output_callback before the DiffEqCallbacks / SciMLBase extension is loaded. The output-side mirror of RefreshError .

code is the registered diagnostic code (an ERROR_CODES value) for the failures that carry one, and "" otherwise.

Source

TypeScript

Not available in TypeScript. TypeScript is outside the runtime I/O capability profile (Julia, Python, Rust): data-source providers, refresh cadence, output sinks, checkpoints.

Python

Python does not export this error.

Rust

pub enum OutputError {
    DuplicateScalar { base: String, count: usize },
    RaggedRank { base: String, got: usize, expected: usize },
    ZeroIndex { base: String, axis: usize },
    SparseGrid { base: String, shape: Vec<usize>, got: usize, want: usize },
    DuplicateCell { base: String, cell: Vec<usize> },
    DimCountMismatch { base: String, dims: Vec<String>, declared: usize, shape: Vec<usize>, actual: usize },
    DimLengthMismatch { base: String, axis: usize, dim: String, size: usize, len: usize },
    DimLengthConflict { dim: String, first: String, a: usize, second: String, b: usize },
    TimeDimCollision { base: String, dim: String },
    CoordLengthMismatch { name: String, got: usize, want: usize },
    UnknownObserved { name: String },
    AmbiguousRequest { name: String, candidates: Vec<String> },
    BufferLength { base: String, what: &'static str, got: usize, want: usize },
}

impl OutputError { pub fn code(&self) -> Option<&'static str> }

Failure deriving an OutputPlan — the output-side mirror of the loader seam’s errors. Every variant names the offending variable or dimension: a mislabeled axis is silently wrong science, so these fail loudly.

Source · Rust docs

Go

Not available in Go. Go is outside the runtime I/O capability profile (Julia, Python, Rust): data-source providers, refresh cadence, output sinks, checkpoints.