Enum minidom_ext::Error [−][src]
pub enum Error {
AttributeNotFound(String, String),
NoChildrenFound(String),
NoChildren(String, String),
MultipleChildrenFound(String, usize),
MultipleChildren(String, String, usize),
ParseError {
element_name: String,
attribute_name: String,
value: String,
source: Error,
},
}
Expand description
Error type for minidom_ext
Variants
AttributeNotFound(String, String)
Returned when the attribute could not be found by name. First parameter is the element’s name, second parameter is attribute’s name.
NoChildrenFound(String)
Tuple Fields
0: String
Returned when no children can be matched with the predicate. First parameter is the element’s name.
NoChildren(String, String)
Returned when no children can be matched with the expected child’s name. First parameter is the element’s name, second parameter is the child’s name.
MultipleChildrenFound(String, usize)
Returned when multiple children can be matched with the predicate. First parameter is the element’s name, second parameter is the number of matching children found.
MultipleChildren(String, String, usize)
Returned when multiple children can be matched with the expected child’s name. First parameter is the element’s name, second parameter is the child’s name, third parameter is the number of matching children found.
ParseError
Fields
element_name: String
Element’s name
attribute_name: String
Attribute’s name
value: String
Value of the attribute
source: Error
Original parsing error. The specific type depends on what type the
value is parsed into.
For example, if parsing into a i64
fails, the returned error
would be of type ParseIntError
.
Returned when the attribute cannot be parsed or convert into the expected type.