TldException.php 798 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * Copyright (c) Alexandre Gomes Gaigalas <alganet@gmail.com>
  4. * SPDX-License-Identifier: MIT
  5. */
  6. declare(strict_types=1);
  7. namespace Respect\Validation\Exceptions;
  8. /**
  9. * Exceptions thrown by Tld Rule.
  10. *
  11. * @author Alexandre Gomes Gaigalas <alganet@gmail.com>
  12. * @author Henrique Moody <henriquemoody@gmail.com>
  13. * @author Nick Lombard <github@jigsoft.co.za>
  14. * @author Paul Karikari <paulkarikari1@gmail.com>
  15. */
  16. final class TldException extends ValidationException
  17. {
  18. /**
  19. * {@inheritDoc}
  20. */
  21. protected $defaultTemplates = [
  22. self::MODE_DEFAULT => [
  23. self::STANDARD => '{{name}} 必须是有效的顶级域名',
  24. ],
  25. self::MODE_NEGATIVE => [
  26. self::STANDARD => '{{name}} 不能是有效的顶级域名',
  27. ],
  28. ];
  29. }