Custom Validation Message for numeric I want to Number validation for my site, but not able to show custom validation message to user.

       'CVV' =&gt; [
            'label'    =&gt;  'CVV Number',
            'type' =&gt; 'numerical',              
            'numberPattern'=&gt; '^[0-9]{3,3}$', 
            'min'   =&gt;  100, 
            'minLength'   =&gt;  3, 
            'max'   =&gt;  999,
            'maxLength'   =&gt;  3,
            'required' =&gt; true,
            'integerOnly'   =&gt;  true,
            'tooSmall'  =&gt;  'CVV Number is too small (minimum is 3 characters).',
            'message'  =&gt;  'CVV Number is too small (minimum is 3 characters).',
            'tooShort'  =&gt;  'CVV Number is too small (minimum is 3 characters).',
            'tooBig'  =&gt;    'CVV Number is too long (maximum is 3 characters).',
            'tooLong'  =&gt;    'CVV Number is too long (maximum is 3 characters).',                
        ],


I tried to set 

AttributeType::Number


Also. But it didn't work.
The issue: 
in the case of numbers like less than 3 characters, I am getting error message: 

CVV Number is too small (minimum is 100).


Please Can anyone help me to get this expected message.
Thank You.
Removed above code and added the custom validation function for CVV Validation 

public function validateCVV($attribute) {
    $value = $this-&gt;$attribute;
    if(!preg_match('/^[0-9]{3}$/', $value)) {
        $message = Craft::t("Oops!  Try again with a valid CVV security code on the back of your card.");
        $this-&gt;addError($attribute, $message);
    }        
}

$rules[] = ['CVC', 'validateCVV'];


Thank You.