VariantParseError

class VariantParseError

Error codes returned by parsing text-format GVariants.

Fields

class VariantParseError
BASIC_TYPE_EXPECTED

A non-basic VariantType was given where a basic type was expected

CANNOT_INFER_TYPE

Cannot infer the VariantType

DEFINITE_TYPE_EXPECTED

An indefinite VariantType was given where a definite type was expected

FAILED

Generic error (unused)

INPUT_NOT_AT_END

Extra data after parsing finished

INVALID_CHARACTER

Invalid character in number or unicode escape

INVALID_FORMAT_STRING

Not a valid Variant format string

INVALID_OBJECT_PATH

Not a valid object path

INVALID_SIGNATURE

Not a valid type signature

INVALID_TYPE_STRING

Not a valid Variant 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

RECURSION

Variant was too deeply nested; Variant is only guaranteed to handle nesting up to 64 levels (Since: 2.64)

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