:right-sidebar: True VariantParseError =================================================================== .. currentmodule:: gi.repository.GLib .. class:: VariantParseError :no-contents-entry: Error codes returned by parsing text-format GVariants. Fields ------ .. rst-class:: interim-class .. class:: VariantParseError :no-index: .. attribute:: BASIC_TYPE_EXPECTED A non-basic :obj:`~gi.repository.GLib.VariantType` was given where a basic type was expected .. attribute:: CANNOT_INFER_TYPE Cannot infer the :obj:`~gi.repository.GLib.VariantType` .. attribute:: DEFINITE_TYPE_EXPECTED An indefinite :obj:`~gi.repository.GLib.VariantType` was given where a definite type was expected .. attribute:: FAILED Generic error (unused) .. attribute:: INPUT_NOT_AT_END Extra data after parsing finished .. attribute:: INVALID_CHARACTER Invalid character in number or unicode escape .. attribute:: INVALID_FORMAT_STRING Not a valid :obj:`~gi.repository.GLib.Variant` format string .. attribute:: INVALID_OBJECT_PATH Not a valid object path .. attribute:: INVALID_SIGNATURE Not a valid type signature .. attribute:: INVALID_TYPE_STRING Not a valid :obj:`~gi.repository.GLib.Variant` type string .. attribute:: NO_COMMON_TYPE Could not find a common type for array entries .. attribute:: NUMBER_OUT_OF_RANGE The numerical value is out of range of the given type .. attribute:: NUMBER_TOO_BIG The numerical value is out of range for any type .. attribute:: RECURSION Variant was too deeply nested; :obj:`~gi.repository.GLib.Variant` is only guaranteed to handle nesting up to 64 levels (Since: 2.64) .. attribute:: TYPE_ERROR Cannot parse as variant of the specified type .. attribute:: UNEXPECTED_TOKEN An unexpected token was encountered .. attribute:: UNKNOWN_KEYWORD An unknown keyword was encountered .. attribute:: UNTERMINATED_STRING_CONSTANT Unterminated string constant .. attribute:: VALUE_EXPECTED No value given