This commit is contained in:
13
CPAN/Moose/Exception/CodeBlockMustBeACodeRef.pm
Normal file
13
CPAN/Moose/Exception/CodeBlockMustBeACodeRef.pm
Normal file
@@ -0,0 +1,13 @@
|
||||
package Moose::Exception::CodeBlockMustBeACodeRef;
|
||||
our $VERSION = '2.2207';
|
||||
|
||||
use Moose;
|
||||
extends 'Moose::Exception';
|
||||
with 'Moose::Exception::Role::ParamsHash', 'Moose::Exception::Role::Instance';
|
||||
|
||||
sub _build_message {
|
||||
"Your code block must be a CODE reference";
|
||||
}
|
||||
|
||||
__PACKAGE__->meta->make_immutable;
|
||||
1;
|
||||
Reference in New Issue
Block a user