summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CannotOverrideBodyOfMetaMethods.pm
blob: 763779a7305021933d97c66642204aeae422ba52 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
package Moose::Exception::CannotOverrideBodyOfMetaMethods;
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 {
    "Overriding the body of meta methods is not allowed";
}

1;