1package Moose::Exception::AddRoleToARoleTakesAMooseMetaRole; 2our $VERSION = '2.2201'; 3 4use Moose; 5extends 'Moose::Exception'; 6with 'Moose::Exception::Role::Role'; 7 8has 'role_to_be_added' => ( 9 is => 'ro', 10 isa => 'Any', 11 required => 1, 12); 13 14sub _build_message { 15 "Roles must be instances of Moose::Meta::Role"; 16} 17 18__PACKAGE__->meta->make_immutable; 191; 20