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