Chloro::Error::Field - An error associated with a specific field
version 0.07
my $errors = $resultset->result_for('field')->errors(); for my $error ( @{$errors} ) { print $error->field()->name(); print ': '; print $error->message()->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.
Bugs may be submitted at http://rt.cpan.org/Public/Dist/Display.html?Name=Chloro or via email to bug-chloro@rt.cpan.org.
I am also usually active on IRC as 'autarch' on irc://irc.perl.org.
irc://irc.perl.org
The source code repository for Chloro can be found at https://github.com/autarch/Chloro.
Dave Rolsky <autarch@urth.org>
This software is Copyright (c) 2017 by Dave Rolsky.
This is free software, licensed under:
The Artistic License 2.0 (GPL Compatible)
The full text of the license can be found in the LICENSE file included with this distribution.
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.