SvgError#

Added in version 4.22.

class SvgError#

Error codes in the GTK_SVG_ERROR domain for errors that happen during parsing or rendering of SVG.

Methods#

class SvgError
get_attribute() str | None#

Returns context information about what XML attribute the parsing error occurred in.

Added in version 4.22.

get_element() str | None#

Returns context information about what XML element the parsing error occurred in.

Added in version 4.22.

get_end() SvgLocation | None#

Returns context information about the end position in the document where the parsing error occurred.

Added in version 4.22.

get_start() SvgLocation | None#

Returns context information about the start position in the document where the parsing error occurred.

Added in version 4.22.

quark() int#

Fields#

class SvgError
FAILED_RENDERING#

Rendering is not according to expecations

FAILED_UPDATE#

An animation could not be updated

IGNORED_ELEMENT#

An XML element is ignored, but it should not affect rendering (this error code is used for metadata and exension elements)

INVALID_ATTRIBUTE#

An attribute is invalid (either because it is not part of SVG, or because it is not implemented in GTK, or its value is problematic)

INVALID_ELEMENT#

An XML element is invalid (either because it is not part of SVG, or because it is in the wrong place, or because it not implemented in GTK)

INVALID_REFERENCE#

A reference does not point to a suitable element

INVALID_SYNTAX#

The XML syntax is broken in some way

LIMITS_EXCEEDED#

An implementation limit has been hit, such as the number of loaded shapes.

MISSING_ATTRIBUTE#

A required attribute is missing

NOT_IMPLEMENTED#

The SVG uses features that are not supported by GtkSvg. It may be advisable to use a different SVG renderer.