package Moose::Exception::CannotDelegateLocalMethodIsPresent; our $VERSION = '2.2010'; use Moose; extends 'Moose::Exception'; with 'Moose::Exception::Role::Attribute', 'Moose::Exception::Role::Method'; sub _build_message { my $self = shift; "You cannot overwrite a locally defined method (".$self->method->name.") with a delegation"; } __PACKAGE__->meta->make_immutable; 1;