:right-sidebar: True GError =================================================================== .. currentmodule:: gi.repository.GObject .. deprecated:: PyGObject-3.16.0 GObject.GError is deprecated; use GLib.GError instead .. class:: GError(message='unknown error', domain='pygi-error', code=0) :no-contents-entry: The ``Error`` structure contains information about an error that has occurred. Attributes ---------- .. rst-class:: interim-class .. class:: Error :no-index: .. attribute:: domain The error domain, usually a string that you can convert to a GLib quark with :func:`~gi.repository.GLib.quark_from_string`. .. attribute:: code A numeric code that identifies a specific error within the domain. .. attribute:: message A human-readable description of the error. Methods ------- .. rst-class:: interim-class .. class:: GError :no-index: .. method:: matches(domain, code) :param domain: :param code: .. classmethod:: new_literal(message, code) :param message: :param code: