summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/MustSupplyPackageNameAndName.pm
blob: 353339743015a5d8ed3d6b55df644d7aa93576e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package Moose::Exception::MustSupplyPackageNameAndName;
our $VERSION = '2.1405';

use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::ParamsHash';

has 'class' => (
    is       => 'ro',
    isa      => 'Str',
    required => 1
);

sub _build_message {
    my $self = shift;
    "You must supply the package_name and name parameters";
}

1;