Package org.gnome.glib
Enum Class VariantParseError
- All Implemented Interfaces:
Enumeration
,Serializable
,Comparable<VariantParseError>
,Constable
@Generated("io.github.jwharm.JavaGI")
public enum VariantParseError
extends Enum<VariantParseError>
implements Enumeration
Error codes returned by parsing text-format GVariants.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptiona non-basicGVariantType
was given where a basic type was expectedcannot infer theGVariantType
an indefiniteGVariantType
was given where a definite type was expectedgeneric error (unused)extra data after parsing finishedinvalid character in number or unicode escapenot a validGVariant
format stringnot a valid object pathnot a valid type signaturenot a validGVariant
type stringcould not find a common type for array entriesthe numerical value is out of range of the given typethe numerical value is out of range for any typevariant was too deeply nested;GVariant
is only guaranteed to handle nesting up to 64 levels (Since: 2.64)cannot parse as variant of the specified typean unexpected token was encounteredan unknown keyword was encounteredunterminated string constantno value given -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
Get the numeric value of this enumstatic VariantParseError
of
(int value) Create a new VariantParseError for the provided valuestatic VariantParseError
Returns the enum constant of this class with the specified name.static VariantParseError[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
FAILED
generic error (unused) -
BASIC_TYPE_EXPECTED
a non-basicGVariantType
was given where a basic type was expected -
CANNOT_INFER_TYPE
cannot infer theGVariantType
-
DEFINITE_TYPE_EXPECTED
an indefiniteGVariantType
was given where a definite type was expected -
INPUT_NOT_AT_END
extra data after parsing finished -
INVALID_CHARACTER
invalid character in number or unicode escape -
INVALID_FORMAT_STRING
not a validGVariant
format string -
INVALID_OBJECT_PATH
not a valid object path -
INVALID_SIGNATURE
not a valid type signature -
INVALID_TYPE_STRING
not a validGVariant
type string -
NO_COMMON_TYPE
could not find a common type for array entries -
NUMBER_OUT_OF_RANGE
the numerical value is out of range of the given type -
NUMBER_TOO_BIG
the numerical value is out of range for any type -
TYPE_ERROR
cannot parse as variant of the specified type -
UNEXPECTED_TOKEN
an unexpected token was encountered -
UNKNOWN_KEYWORD
an unknown keyword was encountered -
UNTERMINATED_STRING_CONSTANT
unterminated string constant -
VALUE_EXPECTED
no value given -
RECURSION
variant was too deeply nested;GVariant
is only guaranteed to handle nesting up to 64 levels (Since: 2.64)
-
-
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 VariantParseError 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
-