planner_refusal
Stable error · Errors
Tier: stable · Kind: error · Topic: Errors
| Julia | Rust |
|---|---|
PlannerRefusal | earthsci_integrator_planner::Refusal |
Julia
struct PlannerRefusal <: Exception
PlannerRefusal(code::String, at::String, msg::String)
PlannerRefusal(code, at, msg)
PlannerRefusal(code, at, msg)
The planner refuses its inputs: code is one of spec/planner-errors.json’s
codes, at the JSON pointer into the run config of the offending key
(/model for a refusal about the model), and msg a message for people.
Conformance fixtures compare code and at only.
Rust
pub struct Refusal {
pub code: &'static str,
pub pointer: String,
pub message: String,
}
A refusal: a code of spec/planner-errors.json, the JSON pointer into the
run config it concerns (/model for the model), and a message. Only the
code and the pointer are conformance-tested (spec/plan.md §4).