Sha256: daedc8e58de70efe8dd7e4b648b4aac8a31e32beff413240f89729415c3a5651
Contents?: true
Size: 596 Bytes
Versions: 14
Compression:
Stored size: 596 Bytes
Contents
package Moose::Exception::DefaultToMatchOnTypeMustBeCodeRef; our $VERSION = '2.2206'; 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
14 entries across 7 versions & 1 rubygems