Type Alias FileError

Source
pub type FileError = Error;

Aliased Type§

pub enum FileError {
    ParseError {
        message: String,
    },
    FileError {
        message: String,
    },
    TypeError {
        message: String,
    },
    KeyNotFound {
        key: String,
    },
    SectionNotFound {
        name: String,
    },
}

Variants§

§

ParseError

Error that occurs during parsing of YINI content (equivalent to yini::ParseError).

Fields

§message: String
§

FileError

Error that occurs during file I/O operations (equivalent to yini::FileError).

Fields

§message: String
§

TypeError

Error that occurs when trying to access a value with wrong type.

Fields

§message: String
§

KeyNotFound

Error that occurs when trying to access a non-existent key or section.

Fields

§

SectionNotFound

Error that occurs when trying to access a non-existent section.

Fields

§name: String