summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/EnumCalledWithAnArrayRefAndAdditionalArgs.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/EnumCalledWithAnArrayRefAndAdditionalArgs.pm')
-rw-r--r--lib/Moose/Exception/EnumCalledWithAnArrayRefAndAdditionalArgs.pm23
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/Moose/Exception/EnumCalledWithAnArrayRefAndAdditionalArgs.pm b/lib/Moose/Exception/EnumCalledWithAnArrayRefAndAdditionalArgs.pm
new file mode 100644
index 0000000..19fac8a
--- /dev/null
+++ b/lib/Moose/Exception/EnumCalledWithAnArrayRefAndAdditionalArgs.pm
@@ -0,0 +1,23 @@
+package Moose::Exception::EnumCalledWithAnArrayRefAndAdditionalArgs;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+
+has 'array' => (
+ is => 'ro',
+ isa => 'ArrayRef',
+ required => 1
+);
+
+has 'args' => (
+ is => 'ro',
+ isa => 'ArrayRef',
+ required => 1
+);
+
+sub _build_message {
+ "enum called with an array reference and additional arguments. Did you mean to parenthesize the enum call's parameters?";
+}
+
+1;