This commit is contained in:
22
CPAN/Moose/Exception/UnableToRecognizeDelegateMetaclass.pm
Normal file
22
CPAN/Moose/Exception/UnableToRecognizeDelegateMetaclass.pm
Normal file
@@ -0,0 +1,22 @@
|
||||
package Moose::Exception::UnableToRecognizeDelegateMetaclass;
|
||||
our $VERSION = '2.2207';
|
||||
|
||||
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'";
|
||||
}
|
||||
|
||||
__PACKAGE__->meta->make_immutable;
|
||||
1;
|
||||
Reference in New Issue
Block a user