summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CannotDelegateLocalMethodIsPresent.pm
blob: 6232437db4709b7303d531024944f48a967ce13b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
package Moose::Exception::CannotDelegateLocalMethodIsPresent;
our $VERSION = '2.1405';

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";
}

1;