Enum Class SvgError

java.lang.Object
java.lang.Enum<SvgError>
org.gnome.gtk.SvgError
All Implemented Interfaces:
Serializable, Comparable<SvgError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum SvgError extends Enum<SvgError> implements Enumeration
Error codes in the GTK_SVG_ERROR domain for errors that happen during parsing or rendering of SVG.
Since:
4.22
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    Rendering is not according to expecations
    An animation could not be updated
    An XML element is ignored, but it should not affect rendering (this error code is used for metadata and exension elements)
    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)
    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)
    A reference does not point to a suitable element
    The XML syntax is broken in some way
    An implementation limit has been hit, such as the number of loaded shapes.
    A required attribute is missing
    The SVG uses features that are not supported by GtkSvg.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable String
    Returns context information about what XML attribute the parsing error occurred in.
    static @Nullable String
    Returns context information about what XML element the parsing error occurred in.
    static @Nullable SvgLocation
    getEnd(GError error)
    Returns context information about the end position in the document where the parsing error occurred.
    static @Nullable SvgLocation
    Returns context information about the start position in the document where the parsing error occurred.
    static @Nullable Type
    Get the GType of the SvgError class.
    int
    Get the numeric value of this enum
    static SvgError
    of(int value)
    Create a new SvgError for the provided value
    static SvgError
    of(MemorySegment address)
    Create a new SvgError for the value in the provided memory address.
    static Quark
     
    static SvgError
    Returns the enum constant of this class with the specified name.
    static SvgError[]
    Returns an array containing the constants of this enum class, in the order they are declared.

    Methods inherited from class Object

    getClass, notify, notifyAll, wait, wait, wait
  • Enum Constant Details

    • INVALID_SYNTAX

      public static final SvgError INVALID_SYNTAX
      The XML syntax is broken in some way
    • INVALID_ELEMENT

      public static final SvgError 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_ATTRIBUTE

      public static final SvgError 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)
    • MISSING_ATTRIBUTE

      public static final SvgError MISSING_ATTRIBUTE
      A required attribute is missing
    • INVALID_REFERENCE

      public static final SvgError INVALID_REFERENCE
      A reference does not point to a suitable element
    • FAILED_UPDATE

      public static final SvgError FAILED_UPDATE
      An animation could not be updated
    • FAILED_RENDERING

      public static final SvgError FAILED_RENDERING
      Rendering is not according to expecations
    • IGNORED_ELEMENT

      public static final SvgError IGNORED_ELEMENT
      An XML element is ignored, but it should not affect rendering (this error code is used for metadata and exension elements)
    • LIMITS_EXCEEDED

      public static final SvgError LIMITS_EXCEEDED
      An implementation limit has been hit, such as the number of loaded shapes.
    • NOT_IMPLEMENTED

      public static final SvgError NOT_IMPLEMENTED
      The SVG uses features that are not supported by GtkSvg. It may be advisable to use a different SVG renderer.
  • Method Details

    • values

      public static SvgError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static SvgError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • of

      public static SvgError of(int value)
      Create a new SvgError for the provided value
      Parameters:
      value - the enum value
      Returns:
      the enum for the provided value
    • getValue

      public int getValue()
      Get the numeric value of this enum
      Specified by:
      getValue in interface Enumeration
      Returns:
      the enum value
    • of

      public static SvgError of(MemorySegment address)
      Create a new SvgError for the value in the provided memory address.
      Parameters:
      address - the memory address holding a enum value
      Returns:
      the enum for the value in the provided memory address
    • getType

      public static @Nullable Type getType()
      Get the GType of the SvgError class.
      Returns:
      the GType
    • getAttribute

      public static @Nullable String getAttribute(GError error)
      Returns context information about what XML attribute the parsing error occurred in.
      Parameters:
      error - an error in the Gtk.SvgError domain
      Returns:
      the attribute name
      Since:
      4.22
    • getElement

      public static @Nullable String getElement(GError error)
      Returns context information about what XML element the parsing error occurred in.
      Parameters:
      error - an error in the Gtk.SvgError domain
      Returns:
      the element name
      Since:
      4.22
    • getEnd

      public static @Nullable SvgLocation getEnd(GError error)
      Returns context information about the end position in the document where the parsing error occurred.
      Parameters:
      error - an error in the Gtk.SvgError domain
      Returns:
      the Gtk.SvgLocation
      Since:
      4.22
    • getStart

      public static @Nullable SvgLocation getStart(GError error)
      Returns context information about the start position in the document where the parsing error occurred.
      Parameters:
      error - an error in the Gtk.SvgError domain
      Returns:
      the Gtk.SvgLocation
      Since:
      4.22
    • quark

      public static Quark quark()