Struct exile::ParseError [−][src]
pub struct ParseError { pub throw_site: ThrowSite, pub xml_site: Option<XmlSite>, pub message: Option<String>, pub source: Option<Box<dyn Error + Send + Sync + 'static>>, }
Expand description
Represents an error that occurred during parsing because the XML document is not well-formed.
Fields
throw_site: ThrowSite
The location in this library’s sourcecode where the error was thrown.
xml_site: Option<XmlSite>
The location in the XML file where the syntax error was encountered.
message: Option<String>
An optional error message.
source: Option<Box<dyn Error + Send + Sync + 'static>>
An optional underlying error (i.e. an optional wrapped error)
Trait Implementations
impl Debug for ParseError
[src]
impl Debug for ParseError
[src]impl Default for ParseError
[src]
impl Default for ParseError
[src]fn default() -> ParseError
[src]
fn default() -> ParseError
[src]Returns the “default value” for a type. Read more
impl Display for ParseError
[src]
impl Display for ParseError
[src]impl Error for ParseError
[src]
impl Error for ParseError
[src]fn source(&self) -> Option<&(dyn Error + 'static)>
[src]
fn source(&self) -> Option<&(dyn Error + 'static)>
[src]The lower-level source of this error, if any. Read more
fn backtrace(&self) -> Option<&Backtrace>
[src]
fn backtrace(&self) -> Option<&Backtrace>
[src]🔬 This is a nightly-only experimental API. (
backtrace
)Returns a stack backtrace, if available, of where this error occurred. Read more
fn description(&self) -> &str
1.0.0[src]
fn description(&self) -> &str
1.0.0[src]👎 Deprecated since 1.42.0:
use the Display impl or to_string()
impl From<ParseError> for Error
[src]
impl From<ParseError> for Error
[src]fn from(pe: ParseError) -> Self
[src]
fn from(pe: ParseError) -> Self
[src]Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ParseError
impl Send for ParseError
impl Sync for ParseError
impl Unpin for ParseError
impl !UnwindSafe for ParseError
Blanket Implementations
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]pub fn borrow_mut(&mut self) -> &mut T
[src]
pub fn borrow_mut(&mut self) -> &mut T
[src]Mutably borrows from an owned value. Read more