Enum miau::error::ErrorCode[][src]

pub enum ErrorCode {
    WrongNodeType(NodeTypeNodeType),
    WrongValueType(StringString),
    IndexOutOfRange(usize),
    WrongKeyType(NodeTypeString),
    KeyNotFound(String),
    BadNodeMerge(NodeTypeNodeType),
    IoError(Error),
    DeserializationError(String),
    EmptyConfiguration,
    NullValue,
    ParsingError(String),
}

Describes underlying cause of error.

Variants

WrongNodeType(NodeTypeNodeType)

Informs that operation is not valid for given node type e.g descending into value node.

WrongValueType(StringString)

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.

WrongKeyType(NodeTypeString)

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.

BadNodeMerge(NodeTypeNodeType)

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.

EmptyConfiguration

Informs about error attributable to executing invalid operations on empty configuration.

NullValue

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]

impl From<ErrorCode> for ConfigurationError[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToString for T where
    T: Display + ?Sized
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

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

The type returned in the event of a conversion error.