Sha256: a7768dea6ea19a54d74a847b7f09365639b4c63ea69746c94aef8d3fb66e7eee
Contents?: true
Size: 479 Bytes
Versions: 14
Compression:
Stored size: 479 Bytes
Contents
package Moose::Exception::CannotCoerceAttributeWhichHasNoCoercion; our $VERSION = '2.2206'; use Moose; extends 'Moose::Exception'; with 'Moose::Exception::Role::InvalidAttributeOptions', 'Moose::Exception::Role::TypeConstraint'; sub _build_message { my $self = shift; my $name = $self->attribute_name; my $type = $self->type_name; return "You cannot coerce an attribute ($name) unless its type ($type) has a coercion"; } __PACKAGE__->meta->make_immutable; 1;
Version data entries
14 entries across 7 versions & 1 rubygems