#[non_exhaustive]pub enum Error {
Show 38 variants
CannotConvertQueryToString(Map<String, Value>),
CannotConvertCql2JsonToString(Map<String, Value>),
ChronoParse(ParseError),
Cql2(Box<Error>),
Geojson(Box<Error>),
EmptyDatetimeInterval,
FeatureNotEnabled(&'static str),
IncorrectType {
actual: String,
expected: String,
},
InvalidAttribute(String),
InvalidBbox(Vec<f64>, &'static str),
InvalidDatetime(String),
InvalidFilePath(String),
Io(Error),
MissingField(&'static str),
NoHref,
NoItems,
NotAnObject(Value),
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
SearchHasBboxAndIntersects(Box<Search>),
SerdeJson(Error),
SerdeUrlencodedSer(Error),
StartIsAfterEnd(DateTime<FixedOffset>, DateTime<FixedOffset>),
TryFromInt(TryFromIntError),
UnknownType(String),
Unimplemented(&'static str),
UnsupportedGeoparquetType,
UnsupportedMigration(Version, Version),
UrlParse(ParseError),
Arrow(ArrowError),
ArrowSchemaMismatch,
GeoArrow(GeoArrowError),
Wkb(WkbError),
ArrowAdapterClient(Box<dyn Error + Send + Sync>),
MissingGeoparquetMetadata,
Parquet(ParquetError),
InvalidYear(i32),
UnrecognizedDateFormat(String),
}Expand description
Error enum for crate-specific errors.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
CannotConvertQueryToString(Map<String, Value>)
Queries cannot be converted to strings.
CannotConvertCql2JsonToString(Map<String, Value>)
CQL2 JSON cannot (currently) be converted to strings.
TODO support conversion
ChronoParse(ParseError)
Cql2(Box<Error>)
Geojson(Box<Error>)
EmptyDatetimeInterval
An empty datetime interval.
FeatureNotEnabled(&'static str)
Some functionality requires a certain optional feature to be enabled.
IncorrectType
Returned when a STAC object has the wrong type field.
InvalidAttribute(String)
Returned when a property name conflicts with a top-level STAC field, or it’s an invalid top-level field name.
InvalidBbox(Vec<f64>, &'static str)
This vector is not a valid bounding box.
InvalidDatetime(String)
This string is not a valid datetime interval.
InvalidFilePath(String)
A file path could not be converted to a URL.
Io(Error)
MissingField(&'static str)
Returned when there is not a required field on a STAC object
NoHref
There is not an href, when an href is required.
NoItems
There are no items, when items are required.
NotAnObject(Value)
This is not a JSON object.
ParseIntError(ParseIntError)
ParseFloatError(ParseFloatError)
SearchHasBboxAndIntersects(Box<Search>)
A search has both bbox and intersects.
SerdeJson(Error)
SerdeUrlencodedSer(Error)
StartIsAfterEnd(DateTime<FixedOffset>, DateTime<FixedOffset>)
The start time is after the end time.
TryFromInt(TryFromIntError)
UnknownType(String)
Returned when the type field of a STAC object does not equal "Feature", "Catalog", or "Collection".
Unimplemented(&'static str)
This functionality is not yet implemented.
UnsupportedGeoparquetType
Unsupported geoparquet type
UnsupportedMigration(Version, Version)
Unsupported migration.
UrlParse(ParseError)
Arrow(ArrowError)
ArrowSchemaMismatch
The schema of two sets of items don’t match.
GeoArrow(GeoArrowError)
Wkb(WkbError)
ArrowAdapterClient(Box<dyn Error + Send + Sync>)
Error from a wrapped client used by Arrow adapters.
MissingGeoparquetMetadata
No geoparquet metadata in a stac-geoparquet file.
Parquet(ParquetError)
InvalidYear(i32)
Invalid year value.
UnrecognizedDateFormat(String)
Unrecognized date format.
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
use the Display impl or to_string()
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<ParseFloatError> for Error
impl From<ParseFloatError> for Error
Source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Source§impl From<ParseIntError> for Error
impl From<ParseIntError> for Error
Source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> 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 !RefUnwindSafe for Error
impl !UnwindSafe for Error
impl Freeze for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnsafeUnpin for Error
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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