summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CannotAugmentNoSuperMethod.pm
blob: 5f36249cc299f265ab6baf694a837ac8fcd86a0e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
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;