Sha256: a9a85938cf2b9a93b3de67cd61586f3f44b377b0af78083cd0133c1382e5a78d
Contents?: true
Size: 548 Bytes
Versions: 18
Compression:
Stored size: 548 Bytes
Contents
package Moose::Exception::MethodExpectsFewerArgs; our $VERSION = '2.2203'; 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
18 entries across 9 versions & 1 rubygems