respect-validation/library/Exceptions/KeyException.php
2015-06-08 11:51:45 -03:00

18 lines
504 B
PHP

<?php
namespace Respect\Validation\Exceptions;
class KeyException extends AttributeException
{
public static $defaultTemplates = array(
self::MODE_DEFAULT => array(
self::NOT_PRESENT => 'Key {{name}} must be present',
self::INVALID => 'Key {{name}} must be valid',
),
self::MODE_NEGATIVE => array(
self::NOT_PRESENT => 'Key {{name}} must not be present',
self::INVALID => 'Key {{name}} must not be valid',
),
);
}