Contentment::ValidationException - Exception thrown during widget validation
use Contentment::ValidationException; Contentment::ValidationException->throw( message => 'Entry for username is invalid. Must contain only letters.', results => { username => '@#$%^&!', }, );
Throw this exception during validation when there are errors. The "results" field of the exception should be used to store any partially parsed results that can be used to restore the control to the value the user gave, but must fix.
Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>
Copyright 2005 Andrew Sterling Hanenkamp <hanenkamp@cpan.org>. All Rights Reserved.
This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. See perlartistic.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
To install Contentment, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Contentment
CPAN shell
perl -MCPAN -e shell install Contentment
For more information on module installation, please visit the detailed CPAN module installation guide.