summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/IllegalInheritedOptions.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/IllegalInheritedOptions.pm')
-rw-r--r--lib/Moose/Exception/IllegalInheritedOptions.pm22
1 files changed, 22 insertions, 0 deletions
diff --git a/lib/Moose/Exception/IllegalInheritedOptions.pm b/lib/Moose/Exception/IllegalInheritedOptions.pm
new file mode 100644
index 0000000..2eae454
--- /dev/null
+++ b/lib/Moose/Exception/IllegalInheritedOptions.pm
@@ -0,0 +1,22 @@
+package Moose::Exception::IllegalInheritedOptions;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+with 'Moose::Exception::Role::ParamsHash';
+
+has 'illegal_options' => (
+ is => 'ro',
+ traits => ['Array'],
+ handles => {
+ _join_options => 'join',
+ },
+ required => 1,
+);
+
+sub _build_message {
+ my $self = shift;
+ "Illegal inherited options => (".$self->_join_options(', ').")";
+}
+
+1;