json_toolkit/
error.rs

1use thiserror::Error;
2
3/// Any error that may occur when using this crate.
4#[derive(Debug, Clone, PartialEq, Eq, Error)]
5pub enum Error {
6    #[error("JSON pointer must start with a leading '/' if not empty")]
7    MissingLeadingBackslash,
8    #[error("unsupported JSON value insertion")]
9    UnsupportedInsertion,
10    #[error("JSON key not found")]
11    KeyNotFound,
12}