pub enum SyntaxError {
Show 21 variants
Expected(String),
ExpectedNewline,
ExpectedSpace,
IllegalEscape,
IllegalInteger,
IllegalAddr(AddrParseError),
IllegalName(FromStrError),
LongCharStr,
UnevenHexString,
LongGenericData,
NestedParentheses,
NoDefaultTtl,
NoLastClass,
NoLastOwner,
NoOrigin,
RelativeName,
Unexpected(Symbol),
UnexpectedNewline,
UnexpectedEof,
UnknownMnemonic,
Content(Box<dyn Fail>),
}
Expand description
A syntax error happened while scanning master data.
Variants§
Expected(String)
ExpectedNewline
ExpectedSpace
IllegalEscape
IllegalInteger
IllegalAddr(AddrParseError)
IllegalName(FromStrError)
LongCharStr
UnevenHexString
LongGenericData
NestedParentheses
NoDefaultTtl
NoLastClass
NoLastOwner
NoOrigin
RelativeName
Unexpected(Symbol)
UnexpectedNewline
UnexpectedEof
UnknownMnemonic
Content(Box<dyn Fail>)
Used when converting some other content fails.
Implementations§
Trait Implementations§
Source§impl Debug for SyntaxError
impl Debug for SyntaxError
Source§impl Display for SyntaxError
impl Display for SyntaxError
Source§impl Fail for SyntaxError
impl Fail for SyntaxError
Source§fn cause(&self) -> Option<&dyn Fail>
fn cause(&self) -> Option<&dyn Fail>
Returns a reference to the underlying cause of this failure, if it
is an error that wraps other errors. Read more
Source§fn backtrace(&self) -> Option<&Backtrace>
fn backtrace(&self) -> Option<&Backtrace>
Returns a reference to the
Backtrace
carried by this failure, if it
carries one. Read moreSource§impl From<AddrParseError> for SyntaxError
impl From<AddrParseError> for SyntaxError
Source§fn from(err: AddrParseError) -> SyntaxError
fn from(err: AddrParseError) -> SyntaxError
Converts to this type from the input type.
Source§impl From<BadSymbol> for SyntaxError
impl From<BadSymbol> for SyntaxError
Source§fn from(err: BadSymbol) -> SyntaxError
fn from(err: BadSymbol) -> SyntaxError
Converts to this type from the input type.
Source§impl From<FromStrError> for SyntaxError
impl From<FromStrError> for SyntaxError
Source§fn from(err: FromStrError) -> SyntaxError
fn from(err: FromStrError) -> SyntaxError
Converts to this type from the input type.
Source§impl From<PushNameError> for SyntaxError
impl From<PushNameError> for SyntaxError
Source§fn from(err: PushNameError) -> SyntaxError
fn from(err: PushNameError) -> SyntaxError
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for SyntaxError
impl !RefUnwindSafe for SyntaxError
impl Send for SyntaxError
impl Sync for SyntaxError
impl Unpin for SyntaxError
impl !UnwindSafe for SyntaxError
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
Mutably borrows from an owned value. Read more