1Validation::Class::DireUcsteirveC:o:nEtrrriobru(t3e)d PeVralliDdoactuimoenn:t:aCtliaosns::Directive::Error(3)
2
3
4

NAME

6       Validation::Class::Directive::Error - Error Directive for Validation
7       Class Field Definitions
8

VERSION

10       version 7.900059
11

SYNOPSIS

13           use Validation::Class::Simple;
14
15           my $rules = Validation::Class::Simple->new(
16               fields => {
17                   username => {
18                       error => 'This is not a valid username'
19                   }
20               }
21           );
22
23           # set parameters to be validated
24           $rules->params->add($parameters);
25
26           # validate
27           unless ($rules->validate) {
28               # handle the failures
29           }
30

DESCRIPTION

32       Validation::Class::Directive::Error is a core validation class field
33       directive that holds the error message that will supersede any other
34       error messages that attempt to register errors at the field-level for
35       the associated field.
36

AUTHOR

38       Al Newkirk <anewkirk@ana.io>
39
41       This software is copyright (c) 2011 by Al Newkirk.
42
43       This is free software; you can redistribute it and/or modify it under
44       the same terms as the Perl 5 programming language system itself.
45
46
47
48perl v5.36.0                      2023-04V-a0l3idation::Class::Directive::Error(3)
Impressum