summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/HandlesMustBeAHashRef.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/HandlesMustBeAHashRef.pm')
-rw-r--r--lib/Moose/Exception/HandlesMustBeAHashRef.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Moose/Exception/HandlesMustBeAHashRef.pm b/lib/Moose/Exception/HandlesMustBeAHashRef.pm
new file mode 100644
index 0000000..9eb11a5
--- /dev/null
+++ b/lib/Moose/Exception/HandlesMustBeAHashRef.pm
@@ -0,0 +1,19 @@
+package Moose::Exception::HandlesMustBeAHashRef;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+with 'Moose::Exception::Role::Instance';
+
+has 'given_handles' => (
+ is => 'ro',
+ isa => 'Any',
+ required => 1
+);
+
+sub _build_message {
+ my $self = shift;
+ "The 'handles' option must be a HASH reference, not ".$self->given_handles;
+}
+
+1;