#[non_exhaustive]pub enum HoconError {
Parse(ParseError),
Resolve(ResolveError),
Io(Error),
}Expand description
Unified error type returned by top-level parse functions.
Wraps the three possible failure modes: syntax errors (ParseError),
substitution resolution failures (ResolveError), and file I/O
errors (std::io::Error).
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
Non-exhaustive enums could have additional variants added in future. Therefore, when matching against variants of non-exhaustive enums, an extra wildcard arm must be added to account for any future variants.
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.
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)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0:
use the Display impl or to_string()
Source§impl From<Error> for HoconError
impl From<Error> for HoconError
Source§impl From<ParseError> for HoconError
impl From<ParseError> for HoconError
Source§fn from(e: ParseError) -> Self
fn from(e: ParseError) -> Self
Converts to this type from the input type.
Source§impl From<ResolveError> for HoconError
impl From<ResolveError> for HoconError
Source§fn from(e: ResolveError) -> Self
fn from(e: ResolveError) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for HoconError
impl !RefUnwindSafe for HoconError
impl Send for HoconError
impl Sync for HoconError
impl Unpin for HoconError
impl UnsafeUnpin for HoconError
impl !UnwindSafe for HoconError
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more