Exception: PublicSuffix::DomainNotAllowed

Inherits:
DomainInvalid show all
Defined in:
lib/public_suffix/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:


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

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

Since:

  • 0.6.0