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

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

sub _build_message {
    my $self = shift;
    "You can not use lazy_build and default for the same attribute (".$self->attribute_name.")";
}

1;