respect-validation/library/Exceptions/UuidException.php
Dick van der Heiden 327297ca6f
Create "Uuid" rule
2017-10-15 18:34:38 +02:00

24 lines
612 B
PHP

<?php
/*
* This file is part of Respect/Validation.
*
* (c) Alexandre Gomes Gaigalas <alexandre@gaigalas.net>
*
* For the full copyright and license information, please view the "LICENSE.md"
* file that was distributed with this source code.
*/
namespace Respect\Validation\Exceptions;
class UuidException extends ValidationException
{
public static $defaultTemplates = [
self::MODE_DEFAULT => [
self::STANDARD => '{{name}} must be a valid UUID',
],
self::MODE_NEGATIVE => [
self::STANDARD => '{{name}} must not be a valid UUID',
],
];
}