Enum json_ld::CompactError
source · pub enum CompactError<M, E, C> {
Expand(ExpandError<M, E, C>),
ContextProcessing(Meta<Error<C>, M>),
Compaction(Meta<Error<C>, M>),
Loading(E),
ContextLoading(C),
}
Expand description
Error that can be raised by the JsonLdProcessor::compact
function.
Variants§
Expand(ExpandError<M, E, C>)
Document expansion failed.
ContextProcessing(Meta<Error<C>, M>)
Context processing failed.
Compaction(Meta<Error<C>, M>)
Document compaction failed.
Loading(E)
Remote document loading failed.
ContextLoading(C)
Remote context loading failed.
Implementations§
Trait Implementations§
source§impl<M, E, C> Display for CompactError<M, E, C>where
ExpandError<M, E, C>: Display,
Meta<Error<C>, M>: Display,
Meta<Error<C>, M>: Display,
E: Display,
C: Display,
impl<M, E, C> Display for CompactError<M, E, C>where
ExpandError<M, E, C>: Display,
Meta<Error<C>, M>: Display,
Meta<Error<C>, M>: Display,
E: Display,
C: Display,
source§impl<M, E, C> Error for CompactError<M, E, C>where
Self: Debug + Display,
impl<M, E, C> Error for CompactError<M, E, C>where
Self: Debug + Display,
1.30.0 · source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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()