Enum apollo_encoder::FromError
source · pub enum FromError {
MissingNode,
ParseIntError(ParseIntError),
ParseFloatError(ParseFloatError),
}
Expand description
Errors that can occur when converting an apollo-parser AST to an apollo-encoder one. These errors don’t give a lot of context at the moment. Before converting ASTs, you should make sure that your parse tree is complete and valid.
Variants§
MissingNode
the parse tree is missing a node
ParseIntError(ParseIntError)
expected to parse a i32
ParseFloatError(ParseFloatError)
expected to parse a f64
Trait Implementations§
source§impl Error for FromError
impl Error for FromError
source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
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<ParseFloatError> for FromError
impl From<ParseFloatError> for FromError
source§fn from(source: ParseFloatError) -> Self
fn from(source: ParseFloatError) -> Self
Converts to this type from the input type.
source§impl From<ParseIntError> for FromError
impl From<ParseIntError> for FromError
source§fn from(source: ParseIntError) -> Self
fn from(source: ParseIntError) -> Self
Converts to this type from the input type.