summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/MethodNameNotFoundInInheritanceHierarchy.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/MethodNameNotFoundInInheritanceHierarchy.pm')
-rw-r--r--lib/Moose/Exception/MethodNameNotFoundInInheritanceHierarchy.pm19
1 files changed, 19 insertions, 0 deletions
diff --git a/lib/Moose/Exception/MethodNameNotFoundInInheritanceHierarchy.pm b/lib/Moose/Exception/MethodNameNotFoundInInheritanceHierarchy.pm
new file mode 100644
index 0000000..a724809
--- /dev/null
+++ b/lib/Moose/Exception/MethodNameNotFoundInInheritanceHierarchy.pm
@@ -0,0 +1,19 @@
+package Moose::Exception::MethodNameNotFoundInInheritanceHierarchy;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+with 'Moose::Exception::Role::Class';
+
+has 'method_name' => (
+ is => 'ro',
+ isa => 'Str',
+ required => 1
+);
+
+sub _build_message {
+ my $self = shift;
+ "The method '".$self->method_name."' was not found in the inheritance hierarchy for ".$self->class_name;
+}
+
+1;