| MooseX-Constructor-AllErrors documentation | Contained in the MooseX-Constructor-AllErrors distribution. |
MooseX::Constructor::AllErrors::Error::Required - represents a missing argument error
version 0.016
This class represents a required constructor argument not being passed in.
Returns a human-readable error message for this error.
The Moose::Meta::Attribute object that this error relates to.
Hans Dieter Pearcey <hdp@cpan.org>
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 perl itself.
| MooseX-Constructor-AllErrors documentation | Contained in the MooseX-Constructor-AllErrors distribution. |
package MooseX::Constructor::AllErrors::Error::Required; BEGIN { $MooseX::Constructor::AllErrors::Error::Required::VERSION = '0.016'; } use Moose; extends 'MooseX::Constructor::AllErrors::Error'; has attribute => ( is => 'ro', isa => 'Moose::Meta::Attribute', required => 1, ); sub message { my $self = shift; return sprintf 'Attribute (%s) is required', $self->attribute->name; } 1; __END__