20 lines
371 B
Perl
20 lines
371 B
Perl
package Moose::Exception::AttributeExtensionIsNotSupportedInRoles;
|
|
our $VERSION = '2.2207';
|
|
|
|
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";
|
|
}
|
|
|
|
__PACKAGE__->meta->make_immutable;
|
|
1;
|