Sha256: 9d6a419402b7b4d53bdc3af99e3e38b1819546aaf41b0a58d00dfa2e9aeea792
Contents?: true
Size: 548 Bytes
Versions: 38
Compression:
Stored size: 548 Bytes
Contents
package Moose::Exception::MethodExpectsFewerArgs; our $VERSION = '2.2207'; use Moose; extends 'Moose::Exception'; has 'method_name' => ( is => 'ro', isa => 'Str', required => 1, ); has 'maximum_args' => ( is => 'ro', isa => 'Int', required => 1, ); sub _build_message { my $self = shift; my $max = $self->maximum_args; "Cannot call ".$self->method_name." with ". ( $max ? "more than $max" : 'any'). " argument".( $max == 1 ? '' : 's' ); } __PACKAGE__->meta->make_immutable; 1;
Version data entries
38 entries across 26 versions & 1 rubygems