summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/UndefinedHashKeysPassedToMethod.pm
blob: c8349bfdd26c4258515429af5ebbb5252f84ff4b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
package Moose::Exception::UndefinedHashKeysPassedToMethod;
our $VERSION = '2.1405';

use Moose;
extends 'Moose::Exception';

has 'hash_keys' => (
    is         => 'ro',
    isa        => 'ArrayRef',
    required   => 1
);

has 'method_name' => (
    is       => 'ro',
    isa      => 'Str',
    required => 1
);

sub _build_message {
    my $self = shift;
    "Hash keys passed to ".$self->method_name." must be defined";
}

1;