Skip to main content

VrtError

Enum VrtError 

Source
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

Fields

§message: String

Error message

§

InvalidStructure

Invalid VRT structure

Fields

§message: String

Error message

§

SourceNotFound

Source file not found

Fields

§path: String

Source file path

§

SourceError

Source file error

Fields

§path: String

Source file path

§message: String

Error message

§

InvalidSource

Invalid source configuration

Fields

§message: String

Error message

§

InvalidBand

Invalid band configuration

Fields

§message: String

Error message

§

BandOutOfRange

Band out of range

Fields

§band: usize

Band index

§max: usize

Maximum band index

§

InvalidExtent

Invalid extent

Fields

§message: String

Error message

§

InvalidWindow

Invalid window

Fields

§message: String

Error message

§

InvalidPixelFunction

Invalid pixel function

Fields

§function: String

Function name

§

MissingAttribute

Missing required attribute

Fields

§attribute: String

Attribute name

§

PathResolution

Path resolution error

Fields

§path: String

Path that failed to resolve

§message: String

Error message

§

CacheError

Cache error

Fields

§message: String

Error message

§

IncompatibleSources

Incompatible sources

Fields

§message: String

Error message

§

Io(Error)

I/O error

§

Core(OxiGdalError)

OxiGDAL core error

Implementations§

Source§

impl VrtError

Source

pub fn xml_parse<S: Into<String>>(message: S) -> Self

Creates an XML parsing error

Source

pub fn invalid_structure<S: Into<String>>(message: S) -> Self

Creates an invalid structure error

Source

pub fn source_not_found<S: Into<String>>(path: S) -> Self

Creates a source not found error

Source

pub fn source_error<S: Into<String>, M: Into<String>>( path: S, message: M, ) -> Self

Creates a source error

Source

pub fn invalid_source<S: Into<String>>(message: S) -> Self

Creates an invalid source error

Source

pub fn invalid_band<S: Into<String>>(message: S) -> Self

Creates an invalid band error

Source

pub fn band_out_of_range(band: usize, max: usize) -> Self

Creates a band out of range error

Source

pub fn invalid_extent<S: Into<String>>(message: S) -> Self

Creates an invalid extent error

Source

pub fn invalid_window<S: Into<String>>(message: S) -> Self

Creates an invalid window error

Source

pub fn missing_attribute<S: Into<String>>(attribute: S) -> Self

Creates a missing attribute error

Source

pub fn path_resolution<S: Into<String>, M: Into<String>>( path: S, message: M, ) -> Self

Creates a path resolution error

Source

pub fn cache_error<S: Into<String>>(message: S) -> Self

Creates a cache error

Source

pub fn incompatible_sources<S: Into<String>>(message: S) -> Self

Creates an incompatible sources error

Trait Implementations§

Source§

impl Debug for VrtError

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Display for VrtError

Source§

fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Error for VrtError

Source§

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

👎Deprecated since 1.42.0:

use the Display impl or to_string()

1.0.0 · Source§

fn cause(&self) -> Option<&dyn Error>

👎Deprecated since 1.33.0:

replaced by Error::source, which can support downcasting

Source§

fn provide<'a>(&'a self, request: &mut Request<'a>)

🔬This is a nightly-only experimental API. (error_generic_member_access)
Provides type-based access to context intended for error reports. Read more
Source§

impl From<Error> for VrtError

Source§

fn from(source: Error) -> Self

Converts to this type from the input type.
Source§

impl From<OxiGdalError> for VrtError

Source§

fn from(source: OxiGdalError) -> Self

Converts to this type from the input type.

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self>

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self>

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToString for T
where T: Display + ?Sized,

Source§

fn to_string(&self) -> String

Converts the given value to a String. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self>
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self>

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more