SfException.php 809 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /*
  3. * This file is part of Respect/Validation.
  4. *
  5. * (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
  6. *
  7. * For the full copyright and license information, please view the LICENSE file
  8. * that was distributed with this source code.
  9. */
  10. declare(strict_types=1);
  11. namespace Respect\Validation\Exceptions;
  12. /**
  13. * @author Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
  14. * @author Henrique Moody <henriquemoody@gmail.com>
  15. */
  16. final class SfException extends ValidationException
  17. {
  18. /**
  19. * {@inheritDoc}
  20. */
  21. protected $defaultTemplates = [
  22. self::MODE_DEFAULT => [
  23. self::STANDARD => '{{name}} 必须对 {{constraint}} 有效',
  24. ],
  25. self::MODE_NEGATIVE => [
  26. self::STANDARD => '{{name}} 不能对 {{constraint}} 有效',
  27. ],
  28. ];
  29. }