diff options
Diffstat (limited to 'lib/Moose/Exception/MustSupplyAMooseMetaAttributeInstance.pm')
-rw-r--r-- | lib/Moose/Exception/MustSupplyAMooseMetaAttributeInstance.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Moose/Exception/MustSupplyAMooseMetaAttributeInstance.pm b/lib/Moose/Exception/MustSupplyAMooseMetaAttributeInstance.pm new file mode 100644 index 0000000..83d1c72 --- /dev/null +++ b/lib/Moose/Exception/MustSupplyAMooseMetaAttributeInstance.pm @@ -0,0 +1,18 @@ +package Moose::Exception::MustSupplyAMooseMetaAttributeInstance; +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 supply an attribute which is a 'Moose::Meta::Attribute' instance"; +} + +1; |