summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/MOPAttributeNewNeedsAttributeName.pm
blob: 3b62a92b020b1a32fef6882666fdeccd939d3b74 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Moose::Exception::MOPAttributeNewNeedsAttributeName;
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;