mirror of
https://github.com/Respect/Validation.git
synced 2026-03-17 23:59:51 +01:00
20 lines
No EOL
450 B
PHP
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)
|
|
);
|
|
}
|
|
} |