This commit is contained in:
19
CPAN/Moose/Exception/MustSpecifyAtleastOneRoleToApplicant.pm
Normal file
19
CPAN/Moose/Exception/MustSpecifyAtleastOneRoleToApplicant.pm
Normal file
@@ -0,0 +1,19 @@
|
||||
package Moose::Exception::MustSpecifyAtleastOneRoleToApplicant;
|
||||
our $VERSION = '2.2207';
|
||||
|
||||
use Moose;
|
||||
extends 'Moose::Exception';
|
||||
|
||||
has 'applicant' => (
|
||||
is => 'ro',
|
||||
isa => 'Any',
|
||||
required => 1,
|
||||
);
|
||||
|
||||
sub _build_message {
|
||||
my $self = shift;
|
||||
"Must specify at least one role to apply to ".$self->applicant;
|
||||
}
|
||||
|
||||
__PACKAGE__->meta->make_immutable;
|
||||
1;
|
||||
Reference in New Issue
Block a user