pub enum DslError {
Empty,
TooManyOps {
count: 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,
},
}Expand description
Parser error — surfaced as invalid_params at the MCP boundary.
Variants§
Empty
TooManyOps
UnexpectedChar
UnexpectedEof
InvalidIdentifier
DuplicateArg
InvalidValue
InvalidJson
UnclosedString
UnclosedBracket
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
impl StructuralPartialEq for DslError
Auto Trait Implementations§
impl Freeze for DslError
impl RefUnwindSafe for DslError
impl Send for DslError
impl Sync for DslError
impl Unpin for DslError
impl UnsafeUnpin for DslError
impl UnwindSafe for DslError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more