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