Version: dev

planner_refusal

Stable error · Errors

Tier: stable · Kind: error · Topic: Errors

JuliaRust
PlannerRefusalearthsci_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.

Source

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).

Source · Rust docs