pub enum NamespaceError {
UnknownPrefix(Vec<u8>),
InvalidXmlPrefixBind(Vec<u8>),
InvalidXmlnsPrefixBind(Vec<u8>),
InvalidPrefixForXml(Vec<u8>),
InvalidPrefixForXmlns(Vec<u8>),
}Expand description
Some namespace was invalid
Variants§
UnknownPrefix(Vec<u8>)
Specified namespace prefix is unknown, cannot resolve namespace for it
InvalidXmlPrefixBind(Vec<u8>)
Attempts to bind the xml prefix to something other than http://www.w3.org/XML/1998/namespace.
xml prefix can be bound only to http://www.w3.org/XML/1998/namespace.
Contains the namespace to which xml tried to be bound.
InvalidXmlnsPrefixBind(Vec<u8>)
Attempts to bind the xmlns prefix.
xmlns prefix is always bound to http://www.w3.org/2000/xmlns/ and cannot be bound
to any other namespace or even to http://www.w3.org/2000/xmlns/.
Contains the namespace to which xmlns tried to be bound.
InvalidPrefixForXml(Vec<u8>)
Attempts to bind some prefix (except xml) to http://www.w3.org/XML/1998/namespace.
Only xml prefix can be bound to http://www.w3.org/XML/1998/namespace.
Contains the prefix that is tried to be bound.
InvalidPrefixForXmlns(Vec<u8>)
Attempts to bind some prefix to http://www.w3.org/2000/xmlns/.
http://www.w3.org/2000/xmlns/ cannot be bound to any prefix, even to xmlns.
Contains the prefix that is tried to be bound.
Trait Implementations§
Source§impl Clone for NamespaceError
impl Clone for NamespaceError
Source§impl Debug for NamespaceError
impl Debug for NamespaceError
Source§impl Display for NamespaceError
impl Display for NamespaceError
impl Eq for NamespaceError
Source§impl Error for NamespaceError
impl Error for NamespaceError
1.30.0 · Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()