summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/BuilderMustBeAMethodName.pm
blob: 967ba5f7f15bec2a3413a989081ee8ced8d6c74f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Moose::Exception::BuilderMustBeAMethodName;
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 {
    "builder must be a defined scalar value which is a method name";
}

1;