Exception: PublicSuffixService::DomainNotAllowed

Inherits:
DomainInvalid show all
Defined in:
lib/public_suffix_service/errors.rb

Overview

Raised when trying to parse a domain which is formally defined by a rule, but the rules set a requirement which is not satisfied by the input you are trying to parse.

Examples:


PublicSuffixService.parse("nic.do")
# => PublicSuffixService::DomainNotAllowed

PublicSuffixService.parse("www.nic.do")
# => PublicSuffixService::Domain

Since:

  • 0.6.0