Error

Type Alias Error 

Source
pub type Error = DeserializeError<XmlError>;
Expand description

Error type for SVG parsing

Aliased Type§

pub enum Error {
    Parser(XmlError),
    Reflect(ReflectError),
    UnexpectedEof {
        expected: &'static str,
    },
    TypeMismatch {
        expected: &'static str,
        got: String,
    },
    UnknownElement {
        tag: String,
    },
    UnknownAttribute {
        name: String,
    },
    MissingAttribute {
        name: &'static str,
    },
    Unsupported(String),
}

Variants§

§

Parser(XmlError)

Parser error.

§

Reflect(ReflectError)

Reflection error.

§

UnexpectedEof

Unexpected end of input.

Fields

§expected: &'static str

What was expected.

§

TypeMismatch

Type mismatch.

Fields

§expected: &'static str

What was expected.

§got: String

What was found.

§

UnknownElement

Unknown element.

Fields

§tag: String

The element tag name.

§

UnknownAttribute

Unknown attribute (when deny_unknown_fields is set).

Fields

§name: String

The attribute name.

§

MissingAttribute

Missing required attribute.

Fields

§name: &'static str

The attribute name.

§

Unsupported(String)

Unsupported type.