diff options
Diffstat (limited to 'lib/Moose/Exception/MustPassAHashOfOptions.pm')
-rw-r--r-- | lib/Moose/Exception/MustPassAHashOfOptions.pm | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/lib/Moose/Exception/MustPassAHashOfOptions.pm b/lib/Moose/Exception/MustPassAHashOfOptions.pm new file mode 100644 index 0000000..db4a305 --- /dev/null +++ b/lib/Moose/Exception/MustPassAHashOfOptions.pm @@ -0,0 +1,18 @@ +package Moose::Exception::MustPassAHashOfOptions; +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 { + "You must pass a hash of options"; +} + +1; |