GError

Deprecated since version PyGObject-3.16.0: GObject.GError is deprecated; use GLib.GError instead

class GError(message='unknown error', domain='pygi-error', code=0)

The Error structure contains information about an error that has occurred.

Attributes

class Error
domain

The error domain, usually a string that you can convert to a GLib quark with quark_from_string().

code

A numeric code that identifies a specific error within the domain.

message

A human-readable description of the error.

Methods

class GError
matches(domain, code)
Parameters:
  • domain

  • code

classmethod new_literal(message, code)
Parameters:
  • message

  • code