raise an ValidationError with 3 arguments: value under the 'max_digits' key of the self.error_messages dictionary,
raise ValidationError ( self . error_messages [ 'max_digits' ] , code = 'max_digits' , params = { 'max' : self . max_digits } , )