respect-validation/library/Respect/Validation/Exceptions/NumericException.php
2010-11-30 13:36:04 -02:00

20 lines
No EOL
450 B
PHP

<?php
namespace Respect\Validation\Exceptions;
class NumericException extends InvalidException
{
const MSG_NOT_NUMERIC = 'Numeric_1';
protected $messageTemplates = array(
self::MSG_NOT_NUMERIC => '%s is not a numeric value'
);
public function __construct($input)
{
parent::__construct(
sprintf($this->getMessageTemplate(self::MSG_NOT_NUMERIC),
$input)
);
}
}