#[non_exhaustive]pub enum GeoArrowError {
Arrow(ArrowError),
Crs(String),
External(Box<dyn Error + Send + Sync>),
FlatGeobuf(String),
GeoParquet(String),
IOError(Error),
InvalidGeoArrow(String),
IncorrectGeometryType(String),
Overflow,
Wkb(String),
Wkt(String),
}Expand description
Enum with all errors in this crate.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
Arrow(ArrowError)
Crs(String)
CRS error
External(Box<dyn Error + Send + Sync>)
Wraps an external error.
FlatGeobuf(String)
FlatGeobuf error
GeoParquet(String)
GeoParquet error
IOError(Error)
InvalidGeoArrow(String)
Invalid data not conforming to GeoArrow specification
IncorrectGeometryType(String)
Incorrect geometry type for operation
Overflow
Whenever pushing to a container fails because it does not support more entries.
The solution is usually to use a higher-capacity container-backing type.
Wkb(String)
WKB Error
Wkt(String)
WKT Error
Trait Implementations§
Source§impl Debug for GeoArrowError
impl Debug for GeoArrowError
Source§impl Display for GeoArrowError
impl Display for GeoArrowError
Source§impl Error for GeoArrowError
impl Error for GeoArrowError
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<ArrowError> for GeoArrowError
impl From<ArrowError> for GeoArrowError
Source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
Converts to this type from the input type.
Source§impl From<Error> for GeoArrowError
impl From<Error> for GeoArrowError
Source§impl From<GeoArrowError> for ArrowError
impl From<GeoArrowError> for ArrowError
Source§fn from(err: GeoArrowError) -> Self
fn from(err: GeoArrowError) -> Self
Many APIs where we pass in a callback into the Arrow crate require the returned error type
to be ArrowError, so implementing this From makes the conversion less verbose there.
Auto Trait Implementations§
impl Freeze for GeoArrowError
impl !RefUnwindSafe for GeoArrowError
impl Send for GeoArrowError
impl Sync for GeoArrowError
impl Unpin for GeoArrowError
impl !UnwindSafe for GeoArrowError
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