respect-validation/library/Exceptions/KeyException.php

18 lines
504 B
PHP
Raw Normal View History

2010-12-06 02:17:12 +01:00
<?php
2015-06-08 16:47:14 +02:00
2010-12-06 02:17:12 +01:00
namespace Respect\Validation\Exceptions;
2011-02-07 02:12:41 +01:00
class KeyException extends AttributeException
2010-12-06 02:17:12 +01:00
{
public static $defaultTemplates = array(
self::MODE_DEFAULT => array(
2012-12-04 17:29:22 +01:00
self::NOT_PRESENT => 'Key {{name}} must be present',
self::INVALID => 'Key {{name}} must be valid',
),
self::MODE_NEGATIVE => array(
2012-12-04 17:29:22 +01:00
self::NOT_PRESENT => 'Key {{name}} must not be present',
self::INVALID => 'Key {{name}} must not be valid',
),
);
}