Enum miau::error::ErrorCode [−][src]
Describes underlying cause of error.
Variants
Informs that operation is not valid for given node type e.g descending into value node.
Informs that it is not possible to convert value present in configuration to desired type.
IndexOutOfRange(usize)
Informs that requested index from array kept in configuration exceeds bounds of the array.
Informs that key specified while accessing configuration is of wrong type. Might occur when trying to e.g index into map.
KeyNotFound(String)
Informs that requested key is not present in a configuration.
Informs about errors during merging configuration nodes. Might occur in circumstances like merging map node with array node.
IoError(Error)
Informs about different kinds of input/output errors. Occurs mostly during source collection e.g. reading file or downloading content over network.
DeserializationError(String)
Informs about errors during deserialization. It covers both external sources and internal structures deserialization.
Informs about error attributable to executing invalid operations on empty configuration.
Informs about errors attributable to invalid operation on null value.
ParsingError(String)
Informs about parsing error that occured.
Trait Implementations
impl Debug for ErrorCode
[src]
impl Display for ErrorCode
[src]
impl Error for ErrorCode
[src]
pub fn source(&self) -> Option<&(dyn Error + 'static)>
1.30.0[src]
pub fn backtrace(&self) -> Option<&Backtrace>
[src]
pub fn description(&self) -> &str
1.0.0[src]
pub fn cause(&self) -> Option<&dyn Error>
1.0.0[src]
impl From<ErrorCode> for ConfigurationError
[src]
Auto Trait Implementations
impl !RefUnwindSafe for ErrorCode
[src]
impl Send for ErrorCode
[src]
impl Sync for ErrorCode
[src]
impl Unpin for ErrorCode
[src]
impl !UnwindSafe for ErrorCode
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToString for T where
T: Display + ?Sized,
[src]
T: Display + ?Sized,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,