Sha256: 3651ed2db3a20084fc7950d7d76ed39f0e95e15c2e7758a0d23618ba1178983a
Contents?: true
Size: 597 Bytes
Versions: 36
Compression:
Stored size: 597 Bytes
Contents
package Moose::Exception::ReferencesAreNotAllowedAsDefault; our $VERSION = '2.2207'; use Moose; extends 'Moose::Exception'; with 'Moose::Exception::Role::ParamsHash'; has 'class' => ( is => 'ro', isa => 'Str', required => 1 ); has 'attribute_name' => ( is => 'ro', isa => 'Str', required => 1 ); sub _build_message { my $self = shift; "References are not allowed as default values, you must wrap the default of '". $self->attribute_name."' in a CODE reference (ex: sub { [] } and not [])"; } __PACKAGE__->meta->make_immutable; 1;
Version data entries
36 entries across 24 versions & 1 rubygems