pub struct ParseError(/* private fields */);Expand description
A description that could not be read.
The message is the one serde_json produced, unchanged. A newtype rather than a
re-wrap: the value of this type is that serde does not appear in this crate’s public API, not
that it says anything the underlying error did not. A caller prints it and the words are the
ones the format has always reported — a missing field named, a kind this build does not know
named beside the two it does, an identity written as free text and quoted back — which is what
the contract tests here and in monospace-cli assert on.
What would earn it more is a writer: a file whose kind this build does not know is a
different kind of problem from one that is spelled wrong, and only then is there something to add
that serde cannot say.
Trait Implementations§
Source§impl Debug for ParseError
impl Debug for ParseError
Source§impl Display for ParseError
impl Display for ParseError
Source§impl Error for ParseError
impl Error for ParseError
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()