[][src]Enum hocon::Error

pub enum Error {
    File {
        path: String,
    },
    Parse,
    Include {
        path: String,
    },
    TooManyIncludes,
    IncludeNotAllowedFromStr,
    DisabledExternalUrl,
    KeyNotFound {
        key: String,
    },
    MissingKey,
    InvalidKey,
    Deserialization {
        message: String,
    },
}

Errors that can be encountered while reading a HOCON document

Variants

File

Error reading a file. This can be a file not found, a permission issue, ...

Fields of File

path: String

Path to the file being read

Parse

Error while parsing a document. The document is not valid HOCON

Include

Error including a document

Fields of Include

path: String

Path of the included file

TooManyIncludes

Error processing deep includes. You can change the maximum depth using max_include_depth

IncludeNotAllowedFromStr

Error processing includes from a str source. This is not allowed

DisabledExternalUrl

Error including document with External URL as feature has been disabled

KeyNotFound

Error looking for a key

Fields of KeyNotFound

key: String

Key that was searched

MissingKey

Error getting a value because key is not present

InvalidKey

Error getting a value because of an invalid key type

Deserialization

Error deserializing

Fields of Deserialization

message: String

Error message returned from deserialization

Trait Implementations

impl Clone for Error[src]

impl Debug for Error[src]

impl Display for Error[src]

impl Error for Error[src]

impl PartialEq<Error> for Error[src]

impl StructuralPartialEq for Error[src]

Auto Trait Implementations

impl RefUnwindSafe for Error

impl Send for Error

impl Sync for Error

impl Unpin for Error

impl UnwindSafe for Error

Blanket Implementations

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

impl<T> AsFail for T where
    T: Fail, 

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

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

impl<E> Fail for E where
    E: 'static + Error + Send + Sync

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

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

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,