mirror of
https://github.com/Respect/Validation.git
synced 2024-06-26 17:20:16 +02:00
4e068bf204
-Several improvements on the messaging system and error reporting, lots of refactored code. -Validators can now be safely named $val->setName('My Field'), and that name will reflect on the validation message ("My Field must be bla bla bla" instead of "incorrect value" must be bla bla bla)
12 lines
267 B
PHP
12 lines
267 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class KeyException extends AttributeException
|
|
{
|
|
|
|
public static $defaultTemplates = array(
|
|
self::NOT_PRESENT => '%1$s must be present',
|
|
self::INVALID => 'Key %2$s must be valid on %1$s',
|
|
);
|
|
} |