Sha256: 958d529808d93ad5b441ab10bf5805c243fce033e6ec8f61d9aecd6975fb826a
Contents?: true
Size: 596 Bytes
Versions: 33
Compression:
Stored size: 596 Bytes
Contents
package Moose::Exception::DefaultToMatchOnTypeMustBeCodeRef; our $VERSION = '2.2207'; use Moose; extends 'Moose::Exception'; has 'to_match' => ( is => 'ro', isa => 'Any', required => 1 ); has 'default_action' => ( is => 'ro', isa => 'Any', required => 1 ); has 'cases_to_be_matched' => ( is => 'ro', isa => 'ArrayRef', required => 1 ); sub _build_message { my $self = shift; my $default = $self->default_action; return "Default case must be a CODE ref, not $default"; } __PACKAGE__->meta->make_immutable; 1;
Version data entries
33 entries across 21 versions & 1 rubygems