:right-sidebar: True SvgError =================================================================== .. currentmodule:: gi.repository.Gtk .. versionadded:: 4.22 .. class:: SvgError :no-contents-entry: Error codes in the ``GTK_SVG_ERROR`` domain for errors that happen during parsing or rendering of SVG. Methods ------- .. rst-class:: interim-class .. class:: SvgError :no-index: .. method:: get_attribute() -> str | None Returns context information about what XML attribute the parsing error occurred in. .. versionadded:: 4.22 .. method:: get_element() -> str | None Returns context information about what XML element the parsing error occurred in. .. versionadded:: 4.22 .. method:: get_end() -> ~gi.repository.Gtk.SvgLocation | None Returns context information about the end position in the document where the parsing error occurred. .. versionadded:: 4.22 .. method:: get_start() -> ~gi.repository.Gtk.SvgLocation | None Returns context information about the start position in the document where the parsing error occurred. .. versionadded:: 4.22 .. method:: quark() -> int Fields ------ .. rst-class:: interim-class .. class:: SvgError :no-index: .. attribute:: FAILED_RENDERING The type of the None singleton. .. attribute:: FAILED_UPDATE The type of the None singleton. .. attribute:: IGNORED_ELEMENT The type of the None singleton. .. attribute:: INVALID_ATTRIBUTE The type of the None singleton. .. attribute:: INVALID_ELEMENT The type of the None singleton. .. attribute:: INVALID_REFERENCE The type of the None singleton. .. attribute:: INVALID_SYNTAX The type of the None singleton. .. attribute:: LIMITS_EXCEEDED The type of the None singleton. .. attribute:: MISSING_ATTRIBUTE The type of the None singleton. .. attribute:: NOT_IMPLEMENTED The type of the None singleton.