mirror of
https://github.com/Respect/Validation.git
synced 2026-03-18 08:09:51 +01:00
-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)
13 lines
No EOL
322 B
PHP
13 lines
No EOL
322 B
PHP
<?php
|
|
|
|
namespace Respect\Validation\Exceptions;
|
|
|
|
class OneOfException extends AbstractCompositeException
|
|
{
|
|
|
|
public static $defaultTemplates = array(
|
|
self::NONE => 'At least one of %4$d rules must pass for %1$s',
|
|
self::SOME => 'At least one of %4$d rules must pass for %1$s, only %2$d passed',
|
|
);
|
|
|
|
} |