pub enum MyError {
IO(Error),
Time(Error),
Text(ParseError<LineCol>),
Json(Error),
Geos(Error),
PrecisionLoss(Cow<'static, str>),
CRS(ProjCreateError),
Proj(ProjError),
Runtime(Cow<'static, str>),
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.
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 !RefUnwindSafe for MyError
impl !UnwindSafe for MyError
impl Freeze for MyError
impl Send for MyError
impl Sync for MyError
impl Unpin for MyError
impl UnsafeUnpin 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