pub enum MyError {
Show 14 variants
IO(Error),
Time(Error),
Text(ParseError<LineCol>),
Json(Error),
Geos(Error),
PrecisionLoss(Cow<'static, str>),
CRS(ProjCreateError),
Proj(ProjError),
Runtime(Cow<'static, str>),
CSV(Error),
SQL(Error),
Conv(TryFromIntError),
Conv2(ParseIntError),
Slice(TryFromSliceError),
}Expand description
Variants of error raised from this library.
Variants§
IO(Error)
Input/Output related error.
Time(Error)
Date, time + timestamp (jiff) parsing error.
Text(ParseError<LineCol>)
Text-encoding (peg) related error.
Json(Error)
JSON-encoding (serde) related error
Geos(Error)
GEOS related error.
PrecisionLoss(Cow<'static, str>)
Coordinate conversion results in loss of precision.
CRS(ProjCreateError)
CRS construction error.
Proj(ProjError)
Coordinate transformation (proj) related error.
Runtime(Cow<'static, str>)
Runtime error.
CSV(Error)
CSV error.
SQL(Error)
SqlX error.
Conv(TryFromIntError)
Byte-array to integer conversion error.
Conv2(ParseIntError)
String to integer conversion error.
Slice(TryFromSliceError)
Byte-array to float conversion error.
Trait Implementations§
Source§impl Error for MyError
impl Error for MyError
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<ParseIntError> for MyError
impl From<ParseIntError> for MyError
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.
Source§impl From<ProjCreateError> for MyError
impl From<ProjCreateError> for MyError
Source§fn from(source: ProjCreateError) -> Self
fn from(source: ProjCreateError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromIntError> for MyError
impl From<TryFromIntError> for MyError
Source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Converts to this type from the input type.
Source§impl From<TryFromSliceError> for MyError
impl From<TryFromSliceError> for MyError
Source§fn from(source: TryFromSliceError) -> Self
fn from(source: TryFromSliceError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for MyError
impl !RefUnwindSafe for MyError
impl Send for MyError
impl Sync for MyError
impl Unpin for MyError
impl !UnwindSafe for MyError
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