pub enum VrtError {
Show 16 variants
XmlParse {
message: String,
},
InvalidStructure {
message: String,
},
SourceNotFound {
path: String,
},
SourceError {
path: String,
message: String,
},
InvalidSource {
message: String,
},
InvalidBand {
message: String,
},
BandOutOfRange {
band: usize,
max: usize,
},
InvalidExtent {
message: String,
},
InvalidWindow {
message: String,
},
InvalidPixelFunction {
function: String,
},
MissingAttribute {
attribute: String,
},
PathResolution {
path: String,
message: String,
},
CacheError {
message: String,
},
IncompatibleSources {
message: String,
},
Io(Error),
Core(OxiGdalError),
}Expand description
VRT-specific error types
Variants§
XmlParse
XML parsing error
InvalidStructure
Invalid VRT structure
SourceNotFound
Source file not found
SourceError
Source file error
InvalidSource
Invalid source configuration
InvalidBand
Invalid band configuration
BandOutOfRange
Band out of range
InvalidExtent
Invalid extent
InvalidWindow
Invalid window
InvalidPixelFunction
Invalid pixel function
MissingAttribute
Missing required attribute
PathResolution
Path resolution error
CacheError
Cache error
IncompatibleSources
Incompatible sources
Io(Error)
I/O error
Core(OxiGdalError)
OxiGDAL core error
Implementations§
Source§impl VrtError
impl VrtError
Sourcepub fn invalid_structure<S: Into<String>>(message: S) -> Self
pub fn invalid_structure<S: Into<String>>(message: S) -> Self
Creates an invalid structure error
Sourcepub fn source_not_found<S: Into<String>>(path: S) -> Self
pub fn source_not_found<S: Into<String>>(path: S) -> Self
Creates a source not found error
Sourcepub fn source_error<S: Into<String>, M: Into<String>>(
path: S,
message: M,
) -> Self
pub fn source_error<S: Into<String>, M: Into<String>>( path: S, message: M, ) -> Self
Creates a source error
Sourcepub fn invalid_source<S: Into<String>>(message: S) -> Self
pub fn invalid_source<S: Into<String>>(message: S) -> Self
Creates an invalid source error
Sourcepub fn invalid_band<S: Into<String>>(message: S) -> Self
pub fn invalid_band<S: Into<String>>(message: S) -> Self
Creates an invalid band error
Sourcepub fn band_out_of_range(band: usize, max: usize) -> Self
pub fn band_out_of_range(band: usize, max: usize) -> Self
Creates a band out of range error
Sourcepub fn invalid_extent<S: Into<String>>(message: S) -> Self
pub fn invalid_extent<S: Into<String>>(message: S) -> Self
Creates an invalid extent error
Sourcepub fn invalid_window<S: Into<String>>(message: S) -> Self
pub fn invalid_window<S: Into<String>>(message: S) -> Self
Creates an invalid window error
Sourcepub fn missing_attribute<S: Into<String>>(attribute: S) -> Self
pub fn missing_attribute<S: Into<String>>(attribute: S) -> Self
Creates a missing attribute error
Sourcepub fn path_resolution<S: Into<String>, M: Into<String>>(
path: S,
message: M,
) -> Self
pub fn path_resolution<S: Into<String>, M: Into<String>>( path: S, message: M, ) -> Self
Creates a path resolution error
Sourcepub fn cache_error<S: Into<String>>(message: S) -> Self
pub fn cache_error<S: Into<String>>(message: S) -> Self
Creates a cache error
Sourcepub fn incompatible_sources<S: Into<String>>(message: S) -> Self
pub fn incompatible_sources<S: Into<String>>(message: S) -> Self
Creates an incompatible sources error
Trait Implementations§
Source§impl Error for VrtError
impl Error for VrtError
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<OxiGdalError> for VrtError
impl From<OxiGdalError> for VrtError
Source§fn from(source: OxiGdalError) -> Self
fn from(source: OxiGdalError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for VrtError
impl !RefUnwindSafe for VrtError
impl Send for VrtError
impl Sync for VrtError
impl Unpin for VrtError
impl UnsafeUnpin for VrtError
impl !UnwindSafe for VrtError
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