Enum Class ResourceError

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

@Generated("org.javagi.JavaGI") public enum ResourceError extends Enum<ResourceError> implements Enumeration
Resource errors are for any resource used by an element: memory, files, network connections, process space, ... They're typically used by source and sink elements.
  • Nested Class Summary

    Nested classes/interfaces inherited from class Enum

    Enum.EnumDesc<E>
  • Enum Constant Summary

    Enum Constants
    Enum Constant
    Description
    used when resource is busy.
    used when the resource can't be closed.
    a general error which doesn't fit in any other category.
    used when the resource has no space left.
    used when the resource can't be opened due to missing authorization.
    used when the resource could not be found.
    the number of resource error types.
    used when resource fails to open for reading.
    used when resource cannot be opened for both reading and writing, or either (but unspecified which).
    used when resource fails to open for writing.
    used when the resource can't be read from.
    used when a seek on the resource fails.
    used when settings can't be manipulated on.
    used when a synchronize on the resource fails.
    do not use this except as a placeholder for deciding where to go while developing code.
    used when the resource can't be written to.
  • Method Summary

    Modifier and Type
    Method
    Description
    static @Nullable Type
    Get the GType of the ResourceError class.
    int
    Get the numeric value of this enum
    of(int value)
    Create a new ResourceError for the provided value
    of(MemorySegment address)
    Create a new ResourceError for the value in the provided memory address.
    static Quark
     
    Returns the enum constant of this class with the specified name.
    static ResourceError[]
    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

    • FAILED

      public static final ResourceError 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 ResourceError TOO_LAZY
      do not use this except as a placeholder for deciding where to go while developing code.
    • NOT_FOUND

      public static final ResourceError NOT_FOUND
      used when the resource could not be found.
    • BUSY

      public static final ResourceError BUSY
      used when resource is busy.
    • OPEN_READ

      public static final ResourceError OPEN_READ
      used when resource fails to open for reading.
    • OPEN_WRITE

      public static final ResourceError OPEN_WRITE
      used when resource fails to open for writing.
    • OPEN_READ_WRITE

      public static final ResourceError OPEN_READ_WRITE
      used when resource cannot be opened for both reading and writing, or either (but unspecified which).
    • CLOSE

      public static final ResourceError CLOSE
      used when the resource can't be closed.
    • READ

      public static final ResourceError READ
      used when the resource can't be read from.
    • WRITE

      public static final ResourceError WRITE
      used when the resource can't be written to.
    • SEEK

      public static final ResourceError SEEK
      used when a seek on the resource fails.
    • SYNC

      public static final ResourceError SYNC
      used when a synchronize on the resource fails.
    • SETTINGS

      public static final ResourceError SETTINGS
      used when settings can't be manipulated on.
    • NO_SPACE_LEFT

      public static final ResourceError NO_SPACE_LEFT
      used when the resource has no space left.
    • NOT_AUTHORIZED

      public static final ResourceError NOT_AUTHORIZED
      used when the resource can't be opened due to missing authorization. (Since: 1.2.4)
    • NUM_ERRORS

      public static final ResourceError NUM_ERRORS
      the number of resource error types.
  • Method Details

    • values

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

      public static Quark quark()