summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CannotAugmentNoSuperMethod.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/CannotAugmentNoSuperMethod.pm')
-rw-r--r--lib/Moose/Exception/CannotAugmentNoSuperMethod.pm25
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Moose/Exception/CannotAugmentNoSuperMethod.pm b/lib/Moose/Exception/CannotAugmentNoSuperMethod.pm
new file mode 100644
index 0000000..5f36249
--- /dev/null
+++ b/lib/Moose/Exception/CannotAugmentNoSuperMethod.pm
@@ -0,0 +1,25 @@
+package Moose::Exception::CannotAugmentNoSuperMethod;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+with 'Moose::Exception::Role::ParamsHash';
+
+has 'class' => (
+ is => 'ro',
+ isa => 'Str',
+ required => 1
+);
+
+has 'method_name' => (
+ is => 'ro',
+ isa => 'Str',
+ required => 1
+);
+
+sub _build_message {
+ my $self = shift;
+ "You cannot augment '".$self->method_name."' because it has no super method";
+}
+
+1;