pub enum Error {
Show 27 variants
Io(Error),
Jpeg2000(String),
GeoPackage(String),
Kml(String),
Kmz(String),
Gml(String),
XmlParse(Error),
Sqlite(Error),
Zip(OxiArcError),
InvalidFormat(String),
UnsupportedFeature(String),
Validation(String),
Encoding(String),
Decoding(String),
Compression(String),
Decompression(String),
MissingField(String),
InvalidCrs(String),
Geometry(String),
Metadata(String),
Utf8(FromUtf8Error),
Utf8Str(Utf8Error),
Base64Decode(DecodeError),
ParseInt(ParseIntError),
ParseFloat(ParseFloatError),
Json(Error),
WithContext {
context: String,
source: Box<Error>,
},
}Expand description
Errors that can occur when working with advanced geospatial formats.
Variants§
Io(Error)
I/O error
Jpeg2000(String)
JPEG2000 format error
GeoPackage(String)
GeoPackage format error
Kml(String)
KML format error
Kmz(String)
KMZ format error
Gml(String)
GML format error
XmlParse(Error)
XML parsing error
Sqlite(Error)
SQLite database error
Zip(OxiArcError)
ZIP archive error
InvalidFormat(String)
Invalid format error
UnsupportedFeature(String)
Unsupported feature error
Validation(String)
Validation error
Encoding(String)
Encoding error
Decoding(String)
Decoding error
Compression(String)
Compression error
Decompression(String)
Decompression error
MissingField(String)
Missing required field
InvalidCrs(String)
Invalid coordinate reference system
Geometry(String)
Geometry error
Metadata(String)
Metadata error
Utf8(FromUtf8Error)
UTF-8 conversion error
Utf8Str(Utf8Error)
String conversion error
Base64Decode(DecodeError)
Base64 decode error
ParseInt(ParseIntError)
Parse integer error
ParseFloat(ParseFloatError)
Parse float error
Json(Error)
JSON error
WithContext
Custom error with context
Implementations§
Source§impl Error
impl Error
Sourcepub fn with_context<S: Into<String>>(self, context: S) -> Self
pub fn with_context<S: Into<String>>(self, context: S) -> Self
Add context to an error.
Sourcepub fn geopackage<S: Into<String>>(msg: S) -> Self
pub fn geopackage<S: Into<String>>(msg: S) -> Self
Create a GeoPackage error.
Sourcepub fn invalid_format<S: Into<String>>(msg: S) -> Self
pub fn invalid_format<S: Into<String>>(msg: S) -> Self
Create an invalid format error.
Sourcepub fn unsupported<S: Into<String>>(msg: S) -> Self
pub fn unsupported<S: Into<String>>(msg: S) -> Self
Create an unsupported feature error.
Sourcepub fn validation<S: Into<String>>(msg: S) -> Self
pub fn validation<S: Into<String>>(msg: S) -> Self
Create a validation error.
Sourcepub fn missing_field<S: Into<String>>(field: S) -> Self
pub fn missing_field<S: Into<String>>(field: S) -> Self
Create a missing field error.
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()