pub enum IriSError {
ConvertingPathToIri {
path: String,
error: String,
},
IriParseError {
str: String,
error: String,
},
IriParseErrorWithBase {
str: String,
base: String,
error: String,
},
IriResolveError {
error: String,
base: Box<IriS>,
other: String,
},
JoinError {
error: String,
current: Box<IriS>,
str: String,
},
ReqwestClientCreation {
error: String,
},
UrlParseError {
str: String,
error: String,
},
ReqwestError {
error: String,
},
ReqwestTextError {
error: String,
},
ConvertingFileUrlToPath {
url: String,
},
IOErrorFile {
path: String,
url: String,
error: String,
},
TurtleParseError {
str: String,
error: String,
},
}Expand description
Errors that can occur when working with IriS
Variants§
ConvertingPathToIri
Error converting a std::path::Path into an IRI
IriParseError
Error parsing an String into an IRI
IriParseErrorWithBase
Error parsing an String into an IRI using a base IRI
IriResolveError
Error resolving an IRI against a base IRI
JoinError
Error joining an IRI with a String
ReqwestClientCreation
Error creating a reqwest HTTP client
UrlParseError
Error parsing an IRI as a url::Url
ReqwestError
Error performing an HTTP request with reqwest
ReqwestTextError
Error performing an HTTP request with reqwest and obtaining the response as text
ConvertingFileUrlToPath
Error converting a file scheme url::Url into a std::path::Path
IOErrorFile
Error reading from a file obtained from a url::Url
TurtleParseError
Trait Implementations§
Source§impl Error for IriSError
impl Error for IriSError
1.30.0 · 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()
Auto Trait Implementations§
impl Freeze for IriSError
impl RefUnwindSafe for IriSError
impl Send for IriSError
impl Sync for IriSError
impl Unpin for IriSError
impl UnsafeUnpin for IriSError
impl UnwindSafe for IriSError
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
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> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.