Error

class Error(*args, **kwargs)
Constructors:

Error()
new_literal(domain:int, code:int, message:str) -> error

Constructors

class Error
classmethod new_literal(domain: int, code: int, message: str) GError
Parameters:
  • domain

  • code

  • message

Methods

class Error
domain_register(error_type_name: str, error_type_private_size: int, error_type_init: Callable[[GError], None], error_type_copy: Callable[[GError, GError], None], error_type_clear: Callable[[GError], None]) int
Parameters:
  • error_type_name

  • error_type_private_size

  • error_type_init

  • error_type_copy

  • error_type_clear

domain_register_static(error_type_name: str, error_type_private_size: int, error_type_init: Callable[[GError], None], error_type_copy: Callable[[GError, GError], None], error_type_clear: Callable[[GError], None]) int
Parameters:
  • error_type_name

  • error_type_private_size

  • error_type_init

  • error_type_copy

  • error_type_clear

free() None
matches(domain: int, code: int) bool
Parameters:
  • domain

  • code

Fields

class Error
code
domain
message