pub struct XamlParseException {
pub title: String,
pub line_number: i32,
pub line_position: i32,
pub document: Option<String>,
pub inner_exception: Option<Box<XamlError>>,
pub derived_type_name: Option<&'static str>,
}Expand description
Payload shared by all XmlException-derived errors (message plus line info).
Fields§
§title: StringThe message as passed to the constructor (without the line info suffix).
line_number: i32§line_position: i32§document: Option<String>§inner_exception: Option<Box<XamlError>>§derived_type_name: Option<&'static str>The .NET type name of a class a host derives from XamlParseException,
XamlTransformException or XamlLoadException (C# exception.GetType().Name).
None for the exception types of this crate. Hosts tag their derived exceptions with
XamlError::with_derived_type_name and test them with XamlError::is_derived_type,
which is what a C# type pattern (e is XamlFooException) on the derived class does.
Implementations§
Trait Implementations§
Source§impl Clone for XamlParseException
impl Clone for XamlParseException
Auto Trait Implementations§
impl Freeze for XamlParseException
impl RefUnwindSafe for XamlParseException
impl Send for XamlParseException
impl Sync for XamlParseException
impl Unpin for XamlParseException
impl UnsafeUnpin for XamlParseException
impl UnwindSafe for XamlParseException
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