pub enum ShEx2HtmlError {
Show 17 variants
ShapeNotFound {
iri: IriRef,
schema: Schema,
},
NoLocalRefName {
name: Name,
},
ShapeRefNotFound {
sref: ShapeExprLabel,
schema: Schema,
},
NoShapes {
schema: Schema,
},
EmptyShapes {
schema: Schema,
},
SchemaError {
err: SchemaJsonError,
},
PrefixMapError {
err: PrefixMapError,
},
MiniNinjaError {
err: Error,
},
IOError {
err: Error,
},
UTF8Error {
err: FromUtf8Error,
},
IntoInnerError {
err: IntoInnerError<BufWriter<Vec<u8>>>,
},
ShEx2UmlError {
err: ShEx2UmlError,
},
ErrorCreatingLandingPage {
name: String,
error: Error,
},
ErrorCreatingShapesFile {
name: String,
error: Error,
},
WrongCardinality {
min: i32,
max: i32,
},
AddingComponentNodeIdHasShape {
node_id: NodeId,
shape: Box<HtmlShape>,
component: Box<HtmlShape>,
},
NotImplemented {
msg: String,
},
}
Variants§
ShapeNotFound
NoLocalRefName
ShapeRefNotFound
NoShapes
EmptyShapes
SchemaError
Fields
§
err: SchemaJsonError
PrefixMapError
Fields
§
err: PrefixMapError
MiniNinjaError
IOError
UTF8Error
Fields
§
err: FromUtf8Error
IntoInnerError
Fields
§
err: IntoInnerError<BufWriter<Vec<u8>>>
ShEx2UmlError
Fields
§
err: ShEx2UmlError
ErrorCreatingLandingPage
ErrorCreatingShapesFile
WrongCardinality
AddingComponentNodeIdHasShape
NotImplemented
Implementations§
Source§impl ShEx2HtmlError
impl ShEx2HtmlError
pub fn not_implemented(msg: &str) -> ShEx2HtmlError
Trait Implementations§
Source§impl Debug for ShEx2HtmlError
impl Debug for ShEx2HtmlError
Source§impl Display for ShEx2HtmlError
impl Display for ShEx2HtmlError
Source§impl Error for ShEx2HtmlError
impl Error for ShEx2HtmlError
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 ShEx2HtmlError
impl From<Error> for ShEx2HtmlError
Source§impl From<Error> for ShEx2HtmlError
impl From<Error> for ShEx2HtmlError
Source§impl From<FromUtf8Error> for ShEx2HtmlError
impl From<FromUtf8Error> for ShEx2HtmlError
Source§fn from(source: FromUtf8Error) -> Self
fn from(source: FromUtf8Error) -> Self
Converts to this type from the input type.
Source§impl From<IntoInnerError<BufWriter<Vec<u8>>>> for ShEx2HtmlError
impl From<IntoInnerError<BufWriter<Vec<u8>>>> for ShEx2HtmlError
Source§impl From<PrefixMapError> for ShEx2HtmlError
impl From<PrefixMapError> for ShEx2HtmlError
Source§fn from(source: PrefixMapError) -> Self
fn from(source: PrefixMapError) -> Self
Converts to this type from the input type.
Source§impl From<SchemaJsonError> for ShEx2HtmlError
impl From<SchemaJsonError> for ShEx2HtmlError
Source§fn from(source: SchemaJsonError) -> Self
fn from(source: SchemaJsonError) -> Self
Converts to this type from the input type.
Source§impl From<ShEx2UmlError> for ShEx2HtmlError
impl From<ShEx2UmlError> for ShEx2HtmlError
Source§fn from(source: ShEx2UmlError) -> Self
fn from(source: ShEx2UmlError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for ShEx2HtmlError
impl !RefUnwindSafe for ShEx2HtmlError
impl Send for ShEx2HtmlError
impl Sync for ShEx2HtmlError
impl Unpin for ShEx2HtmlError
impl !UnwindSafe for ShEx2HtmlError
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more