This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
package Moose::Exception::EnumCalledWithAnArrayRefAndAdditionalArgs;
|
||||
our $VERSION = '2.2207';
|
||||
|
||||
use Moose;
|
||||
extends 'Moose::Exception';
|
||||
|
||||
has 'array' => (
|
||||
is => 'ro',
|
||||
isa => 'ArrayRef',
|
||||
required => 1
|
||||
);
|
||||
|
||||
has 'args' => (
|
||||
is => 'ro',
|
||||
isa => 'ArrayRef',
|
||||
required => 1
|
||||
);
|
||||
|
||||
sub _build_message {
|
||||
"enum called with an array reference and additional arguments. Did you mean to parenthesize the enum call's parameters?";
|
||||
}
|
||||
|
||||
__PACKAGE__->meta->make_immutable;
|
||||
1;
|
||||
Reference in New Issue
Block a user