1package Moose::Exception::CoercionNeedsTypeConstraint; 2our $VERSION = '2.2201'; 3 4use Moose; 5extends 'Moose::Exception'; 6with 'Moose::Exception::Role::InvalidAttributeOptions'; 7 8sub _build_message { 9 my $self = shift; 10 "You cannot have coercion without specifying a type constraint on attribute (".$self->attribute_name.")"; 11} 12 13__PACKAGE__->meta->make_immutable; 141; 15