Dave Rolsky > Chloro > Chloro::Error::Field

Download:
Chloro-0.06.tar.gz

Dependencies

Annotate this POD

CPAN RT

Open  0
View/Report Bugs
Module Version: 0.06   Source  

NAME ^

Chloro::Error::Field - An error associated with a specific field

VERSION ^

version 0.06

SYNOPSIS ^

    my $errors = $resultset->result_for('field')->errors();

    for my $message ( @{$errors} ) {
        print $message->field()->name();
        print ': ';
        print $message->error()->text();
    }

DESCRIPTION ^

This class represents an error associated with a field.

METHODS ^

This class has the following methods:

$error->field()

Returns the Chloro::Field object associated with this error.

$error->result()

Returns the Chloro::Result::Field object associated with this error. This is a weak reference, so it could return undef.

$error->message()

Returns a Chloro::ErrorMessage object.

ROLES ^

This object does the Chloro::Role::Error role.

AUTHOR ^

Dave Rolsky <autarch@urth.org>

COPYRIGHT AND LICENSE ^

This software is Copyright (c) 2011 by Dave Rolsky.

This is free software, licensed under:

  The Artistic License 2.0 (GPL Compatible)
syntax highlighting: