GLib.VariantParseError
Description: Reference for GLib.VariantParseError

### Enumeration

# GLibVariantParseError

since: 2.0

#### Declaration

    error-domain GLib.VariantParseError

#### Description

Error codes returned by parsing text-format GVariants.

Available since: 2.0

#### Members

`G_VARIANT_PARSE_ERROR_FAILED`

  Generic error (unused)

  - Value: `0`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_BASIC_TYPE_EXPECTED`

  A non-basic `GVariantType` was given where a basic type was expected.

  - Value: `1`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_CANNOT_INFER_TYPE`

  Cannot infer the `GVariantType`.

  - Value: `2`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_DEFINITE_TYPE_EXPECTED`

  An indefinite `GVariantType` was given where a definite type was expected.

  - Value: `3`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_INPUT_NOT_AT_END`

  Extra data after parsing finished.

  - Value: `4`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_INVALID_CHARACTER`

  Invalid character in number or unicode escape.

  - Value: `5`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_INVALID_FORMAT_STRING`

  Not a valid `GVariant` format string.

  - Value: `6`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_INVALID_OBJECT_PATH`

  Not a valid object path.

  - Value: `7`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_INVALID_SIGNATURE`

  Not a valid type signature.

  - Value: `8`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_INVALID_TYPE_STRING`

  Not a valid `GVariant` type string.

  - Value: `9`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_NO_COMMON_TYPE`

  Could not find a common type for array entries.

  - Value: `10`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_NUMBER_OUT_OF_RANGE`

  The numerical value is out of range of the given type.

  - Value: `11`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_NUMBER_TOO_BIG`

  The numerical value is out of range for any type.

  - Value: `12`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_TYPE_ERROR`

  Cannot parse as variant of the specified type.

  - Value: `13`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_UNEXPECTED_TOKEN`

  An unexpected token was encountered.

  - Value: `14`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_UNKNOWN_KEYWORD`

  An unknown keyword was encountered.

  - Value: `15`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_UNTERMINATED_STRING_CONSTANT`

  Unterminated string constant.

  - Value: `16`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_VALUE_EXPECTED`

  No value given.

  - Value: `17`
  - Nickname: `None`
  - Available since: 2.0
`G_VARIANT_PARSE_ERROR_RECURSION`

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

  - Value: `18`
  - Nickname: `None`
  - Available since: 2.0