Chloro::Error::Field - An error associated with a specific field
version 0.06
my $errors = $resultset->result_for('field')->errors(); for my $message ( @{$errors} ) { print $message->field()->name(); print ': '; print $message->error()->text(); }
This class represents an error associated with a field.
This class has the following methods:
Returns the Chloro::Field object associated with this error.
Returns the Chloro::Result::Field object associated with this error. This is a weak reference, so it could return undef.
undef
Returns a Chloro::ErrorMessage object.
This object does the Chloro::Role::Error role.
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2011 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
To install Chloro, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Chloro
CPAN shell
perl -MCPAN -e shell install Chloro
For more information on module installation, please visit the detailed CPAN module installation guide.