Enum FrontendError
pub enum FrontendError {
Configuration {
message: String,
},
Grammar {
message: String,
},
}Expand description
A construction-time frontend/engine-configuration failure. Lives in the shared
model (beside ParseError) so both the crate::frontends facade and the
crate::earley engine can raise it without the engine reaching across the
engine boundary into the facade layer (mirrors the sanctioned AMBIG_DATA_ID
retrofit). crate::frontends re-exports it for the public surface. Carries
Lark’s exception class so the conformance runner can assert both the class and
the verbatim message: the postlex×dynamic and parser×lexer rejects raise
ConfigurationError (FrontendError::Configuration); the
dynamic×lexer_callbacks reject and the dynamic Earley zero-width/bad-regexp
matcher-build reject raise GrammarError (FrontendError::Grammar).
Variants§
Implementations§
§impl FrontendError
impl FrontendError
pub fn class_name(&self) -> &'static str
pub fn class_name(&self) -> &'static str
Lark’s exception class name — what the conformance runner canonicalizes to.
Trait Implementations§
§impl Clone for FrontendError
impl Clone for FrontendError
§fn clone(&self) -> FrontendError
fn clone(&self) -> FrontendError
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more§impl Debug for FrontendError
impl Debug for FrontendError
§impl Display for FrontendError
impl Display for FrontendError
impl Eq for FrontendError
§impl Error for FrontendError
impl Error for FrontendError
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()
§impl PartialEq for FrontendError
impl PartialEq for FrontendError
impl StructuralPartialEq for FrontendError
Auto Trait Implementations§
impl Freeze for FrontendError
impl RefUnwindSafe for FrontendError
impl Send for FrontendError
impl Sync for FrontendError
impl Unpin for FrontendError
impl UnsafeUnpin for FrontendError
impl UnwindSafe for FrontendError
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§impl<T> ToCompactString for Twhere
T: Display,
impl<T> ToCompactString for Twhere
T: Display,
§fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
fn try_to_compact_string(&self) -> Result<CompactString, ToCompactStringError>
ToCompactString::to_compact_string()] Read more§fn to_compact_string(&self) -> CompactString
fn to_compact_string(&self) -> CompactString
CompactString]. Read more