The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Contentment::ValidationException - Exception thrown during widget validation

SYNOPSIS

  use Contentment::ValidationException;

  Contentment::ValidationException->throw(
      message => 'Entry for username is invalid. Must contain only letters.',
      results => {
          username => '@#$%^&!',
      },
  );

DESCRIPTION

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.

AUTHOR

Andrew Sterling Hanenkamp, <hanenkamp@cpan.org>

LICENSE AND COPYRIGHT

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.