respect-validation/library/Exceptions/KeyException.php

17 lines
503 B
PHP
Raw Normal View History

2010-12-06 02:17:12 +01:00
<?php
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',
),
);
}