Enum svgdom::Error [] [src]

pub enum Error {
    ElementMustHaveAnId,
    ElementCrosslink,
    ParseError(ParseError),
    NoSvgElement,
    EmptyDocument,
    UnsupportedCSS(ErrorPos),
    InvalidCSS(ErrorPos),
    UnsupportedEntity(ErrorPos),
    UnsupportedPaintFallback(String),
    BrokenFuncIri(String),
}

List of all errors that can occur during processing of SVG DOM.

Variants

If you want to use referenced element inside link attribute, such element must have an non-empty ID.

A linked nodes can't reference each other.

Example: <linearGradient id="lg1" xlink:href="#lg2"/> <linearGradient id="lg2" xlink:href="#lg1"/>

Error from libsvgparser.

Parsed document must have an svg element.

Parsed document must have at least one node.

libsvgdom didn't support most of the CSS2 spec.

Error during parsing of the CSS2.

ENTITY with XML Element data is not supported.

We don't support a <paint> type with a fallback value and a valid FuncIRI.

Example: <linearGradient id="lg1"/> <rect fill="url(#lg1) red"/>

We don't support 'use' elements with broken filter attribute.

Trait Implementations

impl PartialEq for Error
[src]

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

impl Display for Error
[src]

Formats the value using the given formatter.

impl Debug for Error
[src]

Formats the value using the given formatter.

impl From<ParseError> for Error
[src]

Performs the conversion.