pub enum DataError {
JSON(/* private fields */),
IRI(/* private fields */),
Email(/* private fields */),
MIME(/* private fields */),
UUID(/* private fields */),
Time(/* private fields */),
Duration(/* private fields */),
LanguageTag(/* private fields */),
LTValidationError(/* private fields */),
SemVer(/* private fields */),
Validation(/* private fields */),
Runtime(/* private fields */),
}Expand description
Enumeration of different error types raised from this library.
Variants§
JSON(/* private fields */)
JSON serialization / deserialization error.
IRI(/* private fields */)
IRI and URI parsing error.
Email(/* private fields */)
EmailAddress syntax error.
MIME(/* private fields */)
MIME type parsing error.
UUID(/* private fields */)
Malformed UUID error.
Time(/* private fields */)
Date, time and timestamp parsing error.
Duration(/* private fields */)
Period (ISO) syntax error.
LanguageTag(/* private fields */)
Invalid Language Tag error.
LTValidationError(/* private fields */)
Language Tag validation error.
SemVer(/* private fields */)
Semantic version parsing error.
Validation(/* private fields */)
General validation error
Runtime(/* private fields */)
Unexpected runtime error.
Trait Implementations§
Source§impl Error for DataError
impl Error for DataError
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<FromStrError> for DataError
impl From<FromStrError> for DataError
Source§fn from(source: FromStrError) -> Self
fn from(source: FromStrError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for DataError
impl From<ParseError> for DataError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ParseError> for DataError
impl From<ParseError> for DataError
Source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for DataError
impl From<ValidationError> for DataError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Source§impl From<ValidationError> for DataError
impl From<ValidationError> for DataError
Source§fn from(source: ValidationError) -> Self
fn from(source: ValidationError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for DataError
impl !RefUnwindSafe for DataError
impl Send for DataError
impl Sync for DataError
impl Unpin for DataError
impl UnsafeUnpin for DataError
impl !UnwindSafe for DataError
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> 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.