summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/BothBuilderAndDefaultAreNotAllowed.pm
blob: 022268d8f11e09b78f180b9003a6322faabfa849 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Moose::Exception::BothBuilderAndDefaultAreNotAllowed;
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 {
    "Setting both default and builder is not allowed.";
}

1;