Andrew Sterling Hanenkamp > Contentment-0.011_033 > Contentment::ValidationException

Download:
Contentment-0.011_033.tar.gz

Dependencies

Annotate this POD

Module Version: 0.02   Source  

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.

syntax highlighting: