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

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

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

sub _build_message {
    "has '+attr' is not supported in roles";
}

1;