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