pub enum FopError {
XmlErrorWithLocation {
message: String,
location: Location,
suggestion: Option<String>,
},
XmlError(String),
EntityError {
message: String,
location: Location,
},
InvalidPropertyValue {
property: String,
value: String,
},
UnknownProperty(String),
InvalidElement(String),
InvalidNesting {
parent: String,
child: String,
},
MissingAttribute {
element: String,
attribute: String,
},
PropertyValidation {
property: String,
value: String,
reason: String,
},
IoError(Error),
ParseError(String),
Generic(String),
}Expand description
Base error type for FOP operations
Variants§
XmlErrorWithLocation
XML parsing error with location
XmlError(String)
XML parsing error (without location)
EntityError
Entity resolution error
InvalidPropertyValue
Invalid property value
UnknownProperty(String)
Unknown property
InvalidElement(String)
Invalid element
InvalidNesting
Element nesting error
MissingAttribute
Missing required attribute
PropertyValidation
Property validation error
IoError(Error)
I/O error
ParseError(String)
Parse error
Generic(String)
Generic error
Trait Implementations§
Source§impl Error for FopError
impl Error for FopError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
Returns the lower-level source of this error, if any. Read more
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
👎Deprecated since 1.42.0: use the Display impl or to_string()
Auto Trait Implementations§
impl Freeze for FopError
impl !RefUnwindSafe for FopError
impl Send for FopError
impl Sync for FopError
impl Unpin for FopError
impl UnsafeUnpin for FopError
impl !UnwindSafe for FopError
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
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more