1package Moose::Exception::CannotCreateMethodAliasLocalMethodIsPresent; 2our $VERSION = '2.2201'; 3 4use Moose; 5extends 'Moose::Exception'; 6with 'Moose::Exception::Role::Role', 'Moose::Exception::Role::Method'; 7 8has 'role_being_applied_name' => ( 9 is => 'ro', 10 isa => 'Str', 11 required => 1 12); 13 14has 'aliased_method_name' => ( 15 is => 'ro', 16 isa => 'Str', 17 required => 1 18); 19 20sub _build_message { 21 "Cannot create a method alias if a local method of the same name exists"; 22} 23 24__PACKAGE__->meta->make_immutable; 251; 26