Karen Etheridge > MooseX-Constructor-AllErrors > MooseX::Constructor::AllErrors::Error::Constructor

Download:
MooseX-Constructor-AllErrors-0.024.tar.gz

Dependencies

Annotate this POD

Website

CPAN RT

New  1
Open  0
View/Report Bugs
Module Version: 0.024   Source  

NAME ^

MooseX::Constructor::AllErrors::Error::Constructor - error class for MooseX::Constructor::AllErrors

VERSION ^

version 0.024

DESCRIPTION ^

$@ will contain an instance of this class when MooseX::Constructor::AllErrors throws an exception during object construction.

METHODS ^

has_errors

True if there are any errors.

add_error

Push a new error to the list (should be an MooseX::Constructor::AllErrors::Error object).

message

Returns the first error message found.

stringify

Returns the first error message found, along with caller information (filename and line number).

errors

Returns a list of MooseX::Constructor::AllErrors::Error objects representing each error that was found.

missing

Returns a list of MooseX::Constructor::AllErrors::Error::Required objects representing each missing argument error that was found.

invalid

Returns a list of MooseX::Constructor::AllErrors::Error::TypeConstraint objects representing each type constraint error that was found.

misc

Returns a list of MooseX::Constructor::AllErrors::Error::Misc objects representing each miscellaneous error that was found.

SEE ALSO ^

Moose

AUTHOR ^

Hans Dieter Pearcey <hdp@cpan.org>

COPYRIGHT AND LICENSE ^

This software is copyright (c) 2009 by Hans Dieter Pearcey.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

syntax highlighting: