pub enum ContextError {
Show 20 variants
InvalidForm,
UnsupportedKeyword(String),
TermCollision(String),
VocabCollision,
ProtectedTermRedefinition(String),
DuplicateImport(String),
ImportCycle(String),
ImportDepthExceeded(usize),
PathEscape,
ResourceUnavailable(String),
ResourceUntrusted(String),
DigestMismatch(String),
RemoteForbidden(String),
RelativeImportWithoutBase,
InvalidTarget(String),
UnboundKey(String),
InvalidNodeLink,
MissingJsonDatatype,
InvalidFactObject,
InvalidResource(String),
}Expand description
A context grammar, resource, or expansion error.
Variants§
InvalidForm
The authored shape is outside the bounded context grammar.
UnsupportedKeyword(String)
A JSON-LD keyword is outside the accepted subset.
TermCollision(String)
Two imports assign different meanings to the same term.
VocabCollision
Two imports assign different default vocabularies.
ProtectedTermRedefinition(String)
A narrower scope changed a protected inherited definition.
DuplicateImport(String)
One resource appeared twice in a transitive import closure.
ImportCycle(String)
An import recurs into an active resource.
ImportDepthExceeded(usize)
The finite context import depth budget was exceeded.
PathEscape
A local reference leaves the supplied root.
The caller did not supply this resource.
ResourceUntrusted(String)
An explicit nonlocal resource has not been trusted by the caller.
DigestMismatch(String)
The bytes do not match a content-addressed reference.
RemoteForbidden(String)
HTTP and other remote schemes are not context references.
RelativeImportWithoutBase
A digest-addressed context cannot resolve a local child.
InvalidTarget(String)
A target is not a canonical semantic node address.
UnboundKey(String)
No binding, prefix, or default vocabulary names the key.
InvalidNodeLink
A node-link value is not a canonical node URI string.
MissingJsonDatatype
The schema closure did not supply the @json datatype.
InvalidFactObject
A non-JSON fact object needs a recognized expanded value or node form.
InvalidResource(String)
A supplied context file is malformed or has the wrong envelope.
Trait Implementations§
Source§impl Clone for ContextError
impl Clone for ContextError
Source§impl Debug for ContextError
impl Debug for ContextError
Source§impl Display for ContextError
impl Display for ContextError
impl Eq for ContextError
Source§impl Error for ContextError
impl Error for ContextError
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()
Source§impl From<ContextError> for DocumentGraphError
impl From<ContextError> for DocumentGraphError
Source§fn from(source: ContextError) -> Self
fn from(source: ContextError) -> Self
Source§impl PartialEq for ContextError
impl PartialEq for ContextError
impl StructuralPartialEq for ContextError
Auto Trait Implementations§
impl Freeze for ContextError
impl RefUnwindSafe for ContextError
impl Send for ContextError
impl Sync for ContextError
impl Unpin for ContextError
impl UnsafeUnpin for ContextError
impl UnwindSafe for ContextError
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.