pub enum ReferencingError {
Unretrievable {
uri: String,
source: Box<dyn Error + Send + Sync>,
},
PointerToNowhere {
pointer: String,
},
InvalidPercentEncoding {
pointer: String,
source: Utf8Error,
},
InvalidArrayIndex {
pointer: String,
index: String,
source: ParseIntError,
},
NoSuchAnchor {
anchor: String,
},
InvalidAnchor {
anchor: String,
},
InvalidUri(UriError),
UnknownSpecification {
specification: String,
},
CircularMetaschema {
uri: String,
},
}Expand description
Errors that can occur during reference resolution and resource handling.
Variants§
Unretrievable
A resource is not present in a registry and retrieving it failed.
PointerToNowhere
A JSON Pointer leads to a part of a document that does not exist.
InvalidPercentEncoding
JSON Pointer contains invalid percent-encoded data.
InvalidArrayIndex
Failed to parse array index in JSON Pointer.
NoSuchAnchor
An anchor does not exist within a particular resource.
InvalidAnchor
An anchor which could never exist in a resource was dereferenced.
InvalidUri(UriError)
An error occurred while parsing or manipulating a URI.
UnknownSpecification
An unknown JSON Schema specification was encountered.
CircularMetaschema
A circular reference was detected in a meta-schema chain.
Implementations§
Trait Implementations§
Source§impl Error for Error
impl Error for Error
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()
Source§impl From<Error> for CanonicalizationError
impl From<Error> for CanonicalizationError
Auto Trait Implementations§
impl !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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