summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/UnableToCanonicalizeNonRolePackage.pm
blob: a6ef63afc7435cc3f3a61e30b65b2021d57b4c7c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package Moose::Exception::UnableToCanonicalizeNonRolePackage;
our $VERSION = '2.1405';

use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::Attribute';

has 'handles' => (
    is       => 'ro',
    isa      => 'Str',
    required => 1,
);

sub _build_message {
    my $self = shift;
    "Unable to canonicalize the 'handles' option with ".$self->handles." because its metaclass is not a Moose::Meta::Role";
}

1;