pub enum ProtoError {
Parse(Box<TabnasError>),
Grammar(String),
Version(String),
TooDeep(String),
}Expand description
A refused .proto document, or a plugin that could not be installed.
Variants§
Parse(Box<TabnasError>)
The engine rejected the source. Carries the engine’s own error, with its code, position and rendered report.
Grammar(String)
The embedded compiled grammar could not be loaded or installed. Only a broken build reaches this.
Version(String)
The plugin’s own version check refused the document: an unknown
syntax or edition value, or a declaration disagreeing with the
supplied option.
TooDeep(String)
The document nests deeper than crate::MAX_NESTING_DEPTH.
Every runtime refuses such a document before the engine runs, with
the same message and no code; only this port’s walk also refuses a
tree that deep handed to it directly, because a Rust stack that
runs out aborts the process. See DIVERGENCE.md, section 2.
Implementations§
Trait Implementations§
Source§impl Clone for ProtoError
impl Clone for ProtoError
Source§impl Debug for ProtoError
impl Debug for ProtoError
Source§impl Display for ProtoError
impl Display for ProtoError
Source§impl Error for ProtoError
impl Error for ProtoError
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
use the Display impl or to_string()