pub enum DslError {
Show 20 variants
Empty,
TooManyOps {
count: usize,
max: usize,
},
InputTooLarge {
len: usize,
max: usize,
},
NestingTooDeep {
pos: usize,
depth: usize,
max: usize,
},
UnexpectedChar {
pos: usize,
found: char,
expected: &'static str,
},
UnexpectedEof {
expected: &'static str,
},
InvalidIdentifier {
pos: usize,
},
DuplicateArg {
name: String,
},
InvalidValue {
pos: usize,
error: String,
},
InvalidJson {
error: String,
},
UnclosedString,
UnclosedBracket {
kind: char,
},
PrevRefOutsideChain {
pos: usize,
},
PrevRefInJsonForm {
arg_name: String,
},
MixedSeparators,
EmptyBatch,
UnsupportedVerbNesting {
pos: usize,
},
WriteKeyConflict {
id: String,
first_op: String,
second_op: String,
},
ReservedEnvelopeArg {
arg_name: String,
verb: String,
},
TrailingComma {
pos: usize,
},
}Expand description
Request syntax or preflight error surfaced as MCP invalid_params.
No operation has executed when this error is returned. Resource, syntax,
reference-placement, conflict, and envelope variants retain their relevant
count, position, field, or tool names.
See crates/khive-request/docs/api/limits-and-errors.md for the full taxonomy.
Variants§
Empty
TooManyOps
InputTooLarge
Raw input exceeds MAX_OPS_INPUT_LEN before parsing begins.
NestingTooDeep
Array/object nesting exceeds NESTING_DEPTH_LIMIT.
UnexpectedChar
UnexpectedEof
InvalidIdentifier
DuplicateArg
InvalidValue
InvalidJson
UnclosedString
UnclosedBracket
PrevRefOutsideChain
Function-form $prev appears outside chain mode.
PrevRefInJsonForm
$prev appears in JSON form, which cannot express chains.
MixedSeparators
Mixing , and | at the top level.
EmptyBatch
Empty batch [] — no ops provided.
UnsupportedVerbNesting
Tool name contains more than one namespace dot.
WriteKeyConflict
Two parallel operations claim the same derived write key.
Fields
ReservedEnvelopeArg
An envelope-only field appears inside a verb argument list.
TrailingComma
A batch element list has a , immediately before its closing ],
e.g. [a(),] — the slot between the comma and the bracket looks
like a missing element, not a second , mistake.
Trait Implementations§
Source§impl Error for DslError
impl Error for DslError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()