#[non_exhaustive]pub enum HoconError {
Parse(ParseError),
Resolve(ResolveError),
Io(Error),
NotResolved(NotResolvedError),
Config(ConfigError),
}Expand description
Unified error type returned by top-level parse functions.
Wraps the possible failure modes: syntax errors (ParseError),
substitution resolution failures (ResolveError), file I/O errors
(std::io::Error), unresolved-getter errors (NotResolvedError),
and Config-boundary type errors (ConfigError — e.g. the S3.5
array-at-file-root rejection).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Parse(ParseError)
Syntax error during lexing or parsing.
Resolve(ResolveError)
Substitution resolution failure (missing key, cycle, etc.).
Io(Error)
File I/O error when reading the top-level config file.
NotResolved(NotResolvedError)
A getter was called on a path whose value contains an unresolved substitution placeholder. Per E12 decision 12.
Config(ConfigError)
Type-mismatch error at the Config boundary (the Lightbend
ConfigException.WrongType analog). Returned by the parse functions
for an array-root document (S3.5, HOCON.md L989-991): the document is
valid syntax, but the object-rooted Config API requires an object at
file root. ConfigError.path is empty for file-root errors.
Trait Implementations§
Source§impl Debug for HoconError
impl Debug for HoconError
Source§impl Display for HoconError
impl Display for HoconError
Source§impl Error for HoconError
impl Error for HoconError
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
use the Display impl or to_string()