summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/UnableToRecognizeDelegateMetaclass.pm
blob: 1a09b9ec74006e5c1e8c6f72d9c7ad11e0a761a8 (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::UnableToRecognizeDelegateMetaclass;
our $VERSION = '2.1405';

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

has 'delegate_metaclass' => (
    is       => 'ro',
    isa      => 'Any',
    required => 1
);

sub _build_message {
    my $self = shift;
    my $meta = $self->delegate_metaclass;

    return "Unable to recognize the delegate metaclass '$meta'";
}

1;