:right-sidebar: True TLDError =================================================================== .. currentmodule:: gi.repository.Soup .. class:: TLDError :no-contents-entry: Error codes for ``%SOUP_TLD_ERROR``. Methods ------- .. rst-class:: interim-class .. class:: TLDError :no-index: .. method:: quark() -> int Registers error quark for :func:`~gi.repository.Soup.tld_get_base_domain` if needed. Fields ------ .. rst-class:: interim-class .. class:: TLDError :no-index: .. attribute:: INVALID_HOSTNAME A hostname was syntactically invalid. .. attribute:: IS_IP_ADDRESS The passed-in "hostname" was actually an IP address (and thus has no base domain or public suffix). .. attribute:: NOT_ENOUGH_DOMAINS The passed-in hostname did not have enough components. Eg, calling :obj:`~gi.repository.Soup.tld_get_base_domain` on "co.uk". .. attribute:: NO_BASE_DOMAIN The passed-in hostname has no recognized public suffix. .. attribute:: NO_PSL_DATA The Public Suffix List was not available.