Version: dev

config_error

Stable error · Errors

Tier: stable · Kind: error · Topic: Errors

JuliaRust
ConfigErrornot exported

Julia

struct ConfigError <: Exception
ConfigError(msg::String)
ConfigError(msg)
ConfigError(msg)

Raised when a run config is invalid for a reason the schema cannot check (spec/run-config.md §8).

Source

Example (refusal)

bad = deepcopy(config)
bad["schedule"]["alg"] = "Bogus"
@test_throws ConfigError build_run(bad; tspan = (0.0, 2.0))

From docs/api/examples/julia/forward_and_gradient.jl

Rust

Rust does not export this error.