summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/LazyAttributeNeedsADefault.pm
blob: 0ba36fac23d0f8810e608b473b220d3ae73e3e51 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package Moose::Exception::LazyAttributeNeedsADefault;
our $VERSION = '2.1405';

use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::EitherAttributeOrAttributeName';

sub _build_message {
    my $self = shift;
    "You cannot have a lazy attribute (".$self->attribute_name.") without specifying a default value for it";
}

1;