pub enum Error {
Io {
message: String,
},
File {
path: String,
},
Parse,
Include {
path: String,
},
TooManyIncludes,
IncludeNotAllowedFromStr,
DisabledExternalUrl,
KeyNotFound {
key: String,
},
MissingKey,
InvalidKey,
Deserialization {
message: String,
},
}
Expand description
Errors that can be encountered while reading a HOCON document
Variants§
Io
Captures IO-Errors. Usually we would use a transparent error but io::Error is not clonable
File
Error reading a file. This can be a file not found, a permission issue, …
Parse
Error while parsing a document. The document is not valid HOCON
Include
Error including a document
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
MissingKey
Error getting a value because key is not present
InvalidKey
Error getting a value because of an invalid key type
Deserialization
Error deserializing
Trait Implementations§
Source§impl Error for Error
impl Error for Error
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
Source§impl From<Error> for Error
this is only needed because this crate heavily relies on Clone and io:Error doesnt implement Clone
impl From<Error> for Error
this is only needed because this crate heavily relies on Clone and io:Error doesnt implement Clone