26 lines
473 B
Perl
26 lines
473 B
Perl
package Moose::Exception::BadOptionFormat;
|
|
our $VERSION = '2.2207';
|
|
|
|
use Moose;
|
|
extends 'Moose::Exception';
|
|
with 'Moose::Exception::Role::Attribute';
|
|
|
|
has 'option_name' => (
|
|
is => 'ro',
|
|
isa => 'Str',
|
|
required => 1
|
|
);
|
|
|
|
has 'option_value' => (
|
|
is => 'ro',
|
|
isa => 'Any',
|
|
required => 1
|
|
);
|
|
|
|
sub _build_message {
|
|
"bad accessor/reader/writer/predicate/clearer format, must be a HASH ref";
|
|
}
|
|
|
|
__PACKAGE__->meta->make_immutable;
|
|
1;
|