:right-sidebar: True Error =================================================================== .. currentmodule:: gi.repository.GObject .. class:: Error(*args, **kwargs) :no-contents-entry: :Constructors: :: Error() new_literal(domain:int, code:int, message:str) -> error Constructors ------------ .. rst-class:: interim-class .. class:: Error :no-index: .. classmethod:: new_literal(domain: int, code: int, message: str) -> ~gi.repository.GLib.GError :param domain: :param code: :param message: Methods ------- .. rst-class:: interim-class .. class:: Error :no-index: .. classmethod:: domain_register(error_type_private_size: int, error_type_init: ~typing.Callable[[~gi.repository.GLib.GError], None], error_type_copy: ~typing.Callable[[~gi.repository.GLib.GError, ~gi.repository.GLib.GError], None], error_type_clear: ~typing.Callable[[~gi.repository.GLib.GError], None]) -> int :param error_type_private_size: :param error_type_init: :param error_type_copy: :param error_type_clear: .. classmethod:: domain_register_static(error_type_private_size: int, error_type_init: ~typing.Callable[[~gi.repository.GLib.GError], None], error_type_copy: ~typing.Callable[[~gi.repository.GLib.GError, ~gi.repository.GLib.GError], None], error_type_clear: ~typing.Callable[[~gi.repository.GLib.GError], None]) -> int :param error_type_private_size: :param error_type_init: :param error_type_copy: :param error_type_clear: .. method:: free() -> None .. method:: matches(domain: int, code: int) -> bool :param domain: :param code: Fields ------ .. rst-class:: interim-class .. class:: Error :no-index: .. attribute:: code .. attribute:: domain .. attribute:: message