Package org.freedesktop.gstreamer.gst
Enum Class ResourceError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<ResourceError>
,Constable
@Generated("io.github.jwharm.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 java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionused 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 TypeMethodDescriptionstatic Type
getType()
Get the GType of the ResourceError classint
getValue()
Get the numeric value of this enumstatic ResourceError
of
(int value) Create a new ResourceError for the provided valuestatic Quark
quark()
static ResourceError
Returns the enum constant of this class with the specified name.static ResourceError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
do not use this except as a placeholder for deciding where to go while developing code. -
NOT_FOUND
used when the resource could not be found. -
BUSY
used when resource is busy. -
OPEN_READ
used when resource fails to open for reading. -
OPEN_WRITE
used when resource fails to open for writing. -
OPEN_READ_WRITE
used when resource cannot be opened for both reading and writing, or either (but unspecified which). -
CLOSE
used when the resource can't be closed. -
READ
used when the resource can't be read from. -
WRITE
used when the resource can't be written to. -
SEEK
used when a seek on the resource fails. -
SYNC
used when a synchronize on the resource fails. -
SETTINGS
used when settings can't be manipulated on. -
NO_SPACE_LEFT
used when the resource has no space left. -
NOT_AUTHORIZED
used when the resource can't be opened due to missing authorization. (Since: 1.2.4) -
NUM_ERRORS
the number of resource error types.
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
of
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 interfaceEnumeration
- Returns:
- the enum value
-
getType
-
quark
-