summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/InvalidHasProvidedInARole.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/InvalidHasProvidedInARole.pm')
-rw-r--r--lib/Moose/Exception/InvalidHasProvidedInARole.pm18
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Moose/Exception/InvalidHasProvidedInARole.pm b/lib/Moose/Exception/InvalidHasProvidedInARole.pm
new file mode 100644
index 0000000..d933d72
--- /dev/null
+++ b/lib/Moose/Exception/InvalidHasProvidedInARole.pm
@@ -0,0 +1,18 @@
+package Moose::Exception::InvalidHasProvidedInARole;
+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 {
+ "Usage: has 'name' => ( key => value, ... )";
+}
+
+1;