#[non_exhaustive]pub enum Error {
Show 34 variants
Arrow(ArrowError),
ChronoParse(ParseError),
GdalError(GdalError),
FeatureNotEnabled(&'static str),
GeoArrow(GeoArrowError),
Geojson(Error),
Io(Error),
InvalidTypeField(Value),
InvalidAttribute(String),
IncorrectType {
actual: String,
expected: String,
},
InvalidBbox(Vec<f64>),
InvalidDatetime(String),
MissingId,
MissingGeometry,
MissingType,
MissingHref,
NoItems,
NoHref,
NotAnItem(Value),
NotACatalog(Value),
NotACollection(Value),
NotAnObject(Value),
ObjectStore(Error),
ObjectStorePath(Error),
Parquet(ParquetError),
Reqwest(Error),
SerdeJson(Error),
TryFromInt(TryFromIntError),
UnknownType(String),
UnsupportedVersion(String),
UnsupportedMigration(Version, Version),
UnsupportedFormat(String),
UnsupportedGeoparquetType,
Url(ParseError),
}
Expand description
Error enum for crate-specific errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Arrow(ArrowError)
geoarrow
only.ChronoParse(ParseError)
GdalError(GdalError)
gdal
only.FeatureNotEnabled(&'static str)
A required feature is not enabled.
GeoArrow(GeoArrowError)
geoarrow
only.Geojson(Error)
Io(Error)
InvalidTypeField(Value)
Returned when the type
field of a STAC object is not a String.
InvalidAttribute(String)
Returned when a property name conflicts with a top-level STAC field, or it’s an invalid top-level field name.
IncorrectType
Returned when a STAC object has the wrong type field.
InvalidBbox(Vec<f64>)
This vector is not a valid bounding box.
InvalidDatetime(String)
This string is not a valid datetime interval.
MissingId
Returned when there is not a id
field on a STAC object
MissingGeometry
Returned when a geometry is missing but is required.
MissingType
Returned when there is not a type
field on a STAC object
MissingHref
Returned when an object is expected to have an href, but it doesn’t.
NoItems
There are no items, when items are required.
NoHref
There is not an href, when an href is required.
NotAnItem(Value)
This value is not an item.
NotACatalog(Value)
This value is not a catalog.
NotACollection(Value)
This value is not a collection.
NotAnObject(Value)
This value is not an object.
ObjectStore(Error)
object-store
only.ObjectStorePath(Error)
object-store
only.Parquet(ParquetError)
geoparquet
only.Reqwest(Error)
reqwest
only.SerdeJson(Error)
TryFromInt(TryFromIntError)
UnknownType(String)
Returned when the type
field of a STAC object does not equal "Feature"
, "Catalog"
, or "Collection"
.
UnsupportedVersion(String)
Unsupported version.
UnsupportedMigration(Version, Version)
Unsupported migration.
UnsupportedFormat(String)
Unsupported file format.
UnsupportedGeoparquetType
Unsupported geoparquet type
Url(ParseError)
Trait Implementations§
source§impl Error for Error
impl Error for Error
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · source§fn description(&self) -> &str
fn description(&self) -> &str
source§impl From<ArrowError> for Error
impl From<ArrowError> for Error
source§fn from(source: ArrowError) -> Self
fn from(source: ArrowError) -> Self
source§impl From<GeoArrowError> for Error
impl From<GeoArrowError> for Error
source§fn from(source: GeoArrowError) -> Self
fn from(source: GeoArrowError) -> Self
source§impl From<ParquetError> for Error
impl From<ParquetError> for Error
source§fn from(source: ParquetError) -> Self
fn from(source: ParquetError) -> Self
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
source§impl From<ParseError> for Error
impl From<ParseError> for Error
source§fn from(source: ParseError) -> Self
fn from(source: ParseError) -> Self
source§impl From<TryFromIntError> for Error
impl From<TryFromIntError> for Error
source§fn from(source: TryFromIntError) -> Self
fn from(source: TryFromIntError) -> Self
Auto Trait Implementations§
impl Freeze for Error
impl !RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl !UnwindSafe for Error
Blanket Implementations§
source§impl<T> AsErrorSource for Twhere
T: Error + 'static,
impl<T> AsErrorSource for Twhere
T: Error + 'static,
source§fn as_error_source(&self) -> &(dyn Error + 'static)
fn as_error_source(&self) -> &(dyn Error + 'static)
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
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>
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>
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