Enum asn1_compiler::error::Error
source · [−]pub enum Error {
TokenizeError(usize, usize, usize),
UnexpectedEndOfTokens,
UnexpectedToken(String, Token),
InvalidToken(Token),
UnknownOIDName(Token),
ParseError(String),
ResolveError(String),
ConstraintError(String),
CodeGenerationError(String),
IOError(String),
}Expand description
Error Type for the crate.
Defines separate variants for the Tokenization, Parsing and Symbol Resolution Errors.
Variants
TokenizeError(usize, usize, usize)
Error when tokenizing the ASN.1 Input (Cause, Line, Column)
UnexpectedEndOfTokens
Unexpected End of Tokens while parsing tokens.
UnexpectedToken(String, Token)
Unexpected Token while parsing tokens.
InvalidToken(Token)
Invalid token while parsing.
UnknownOIDName(Token)
Unknown Object Identifier Name (For Well known names).
ParseError(String)
A Generic parsing error.
ResolveError(String)
Error while resolving the parsed definitions.
ConstraintError(String)
Error related to resolving constraints for a type.
CodeGenerationError(String)
Error related to code generation from resolved types.
IOError(String)
Any IO Error during compilation
Trait Implementations
sourceimpl Error for Error
impl Error for Error
1.30.0 · sourcefn 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 · sourcefn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations
impl RefUnwindSafe for Error
impl Send for Error
impl Sync for Error
impl Unpin for Error
impl UnwindSafe for Error
Blanket Implementations
sourceimpl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more