summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/MustSupplyAMetaclass.pm
blob: fbb876a2c03a577eac519928406197e5874c2525 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package Moose::Exception::MustSupplyAMetaclass;
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 {
    my $self = shift;
    "You must pass a metaclass instance if you want to inline";
}

1;