Package org.gnome.glib
Enum Class ConvertError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<ConvertError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum ConvertError
extends Enum<ConvertError>
implements Enumeration
Error codes returned by character set conversion routines.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionURI is invalid.An embedded NUL character is present in conversion output where a NUL-terminated string is expected.Conversion failed for some reason.Invalid byte sequence in conversion input; or the character sequence could not be represented in the target character set.Conversion between the requested character sets is not supported.No memory available.Pathname is not an absolute path.Partial character sequence at end of input. -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic ConvertError
of
(int value) Create a new ConvertError for the provided valuestatic ConvertError
Returns the enum constant of this class with the specified name.static ConvertError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
NO_CONVERSION
Conversion between the requested character sets is not supported. -
ILLEGAL_SEQUENCE
Invalid byte sequence in conversion input; or the character sequence could not be represented in the target character set. -
FAILED
Conversion failed for some reason. -
PARTIAL_INPUT
Partial character sequence at end of input. -
BAD_URI
URI is invalid. -
NOT_ABSOLUTE_PATH
Pathname is not an absolute path. -
NO_MEMORY
No memory available. Since: 2.40 -
EMBEDDED_NUL
An embedded NUL character is present in conversion output where a NUL-terminated string is expected. Since: 2.56
-
-
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 ConvertError 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
-