summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CannotDelegateLocalMethodIsPresent.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/CannotDelegateLocalMethodIsPresent.pm')
-rw-r--r--lib/Moose/Exception/CannotDelegateLocalMethodIsPresent.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Moose/Exception/CannotDelegateLocalMethodIsPresent.pm b/lib/Moose/Exception/CannotDelegateLocalMethodIsPresent.pm
new file mode 100644
index 0000000..6232437
--- /dev/null
+++ b/lib/Moose/Exception/CannotDelegateLocalMethodIsPresent.pm
@@ -0,0 +1,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;