diff options
Diffstat (limited to 'lib/Moose/Exception/AttributeExtensionIsNotSupportedInRoles.pm')
-rw-r--r-- | lib/Moose/Exception/AttributeExtensionIsNotSupportedInRoles.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Moose/Exception/AttributeExtensionIsNotSupportedInRoles.pm b/lib/Moose/Exception/AttributeExtensionIsNotSupportedInRoles.pm new file mode 100644 index 0000000..8face5c --- /dev/null +++ b/lib/Moose/Exception/AttributeExtensionIsNotSupportedInRoles.pm @@ -0,0 +1,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; |