Enum Class LibraryError

java.lang.Object
java.lang.Enum<LibraryError>
org.freedesktop.gstreamer.gst.LibraryError
All Implemented Interfaces:
Serializable, Comparable<LibraryError>, Constable, Enumeration

@Generated("org.javagi.JavaGI") public enum LibraryError extends Enum<LibraryError> implements Enumeration
Library errors are for errors from the library being used by elements (initializing, finalizing, settings, ...)
  • Enum Constant Details

    • FAILED

      public static final LibraryError FAILED
      a general error which doesn't fit in any other category. Make sure you add a custom message to the error call.
    • TOO_LAZY

      public static final LibraryError TOO_LAZY
      do not use this except as a placeholder for deciding where to go while developing code.
    • INIT

      public static final LibraryError INIT
      used when the library could not be opened.
    • SHUTDOWN

      public static final LibraryError SHUTDOWN
      used when the library could not be closed.
    • SETTINGS

      public static final LibraryError SETTINGS
      used when the library doesn't accept settings.
    • ENCODE

      public static final LibraryError ENCODE
      used when the library generated an encoding error.
    • NUM_ERRORS

      public static final LibraryError NUM_ERRORS
      the number of library error types.
  • Method Details

    • values

      public static LibraryError[] 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 LibraryError 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 LibraryError of(int value)
      Create a new LibraryError 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 LibraryError of(MemorySegment address)
      Create a new LibraryError 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 LibraryError class.
      Returns:
      the GType
    • quark

      public static Quark quark()