diff options
Diffstat (limited to 'lib/Moose/Exception/CodeBlockMustBeACodeRef.pm')
-rw-r--r-- | lib/Moose/Exception/CodeBlockMustBeACodeRef.pm | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lib/Moose/Exception/CodeBlockMustBeACodeRef.pm b/lib/Moose/Exception/CodeBlockMustBeACodeRef.pm new file mode 100644 index 0000000..5b50a79 --- /dev/null +++ b/lib/Moose/Exception/CodeBlockMustBeACodeRef.pm @@ -0,0 +1,12 @@ +package Moose::Exception::CodeBlockMustBeACodeRef; +our $VERSION = '2.1405'; + +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"; +} + +1; |