blob: a4c06bb30aea954fc872b28aa730bf2fbba4e245 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
package Moose::Exception::ClassDoesNotHaveInitMeta;
our $VERSION = '2.1405';
use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::Class';
has 'traits' => (
is => 'ro',
isa => 'ArrayRef',
required => 1
);
sub _build_message {
my $self = shift;
my $class = $self->class_name;
return "Cannot provide traits when $class does not have an init_meta() method";
}
1;
|