summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/MustProvideANameForTheAttribute.pm
blob: d5a48ff3155e30838743c1204431673c0334ec52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Moose::Exception::MustProvideANameForTheAttribute;
our $VERSION = '2.1405';

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

has 'class' => (
    is       => 'ro',
    isa      => 'Str',
    required => 1
);

sub _build_message {
    "You must provide a name for the attribute";
}

1;