From: Shawn M Moore Date: Fri, 15 Jun 2012 18:29:13 +0000 (-0500) Subject: Moose::Exception::TypeConstraint is no longer a role X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=c0ca6c61095243d86b97f3d381d49ddc648a1aa6;p=gitmo%2FMoose.git Moose::Exception::TypeConstraint is no longer a role --- diff --git a/lib/Moose/Meta/Attribute.pm b/lib/Moose/Meta/Attribute.pm index e68bb6e..f0156fd 100644 --- a/lib/Moose/Meta/Attribute.pm +++ b/lib/Moose/Meta/Attribute.pm @@ -692,7 +692,7 @@ sub _inline_check_constraint { . 'do { local $_ = ' . $value . '; ' . $message . '->(' . $value . ')' . '}', - 'roles => ["Moose::Exception::TypeConstraint"]', + 'class => "Moose::Exception::TypeConstraint"', 'attribute_name => ' . $self->name, 'type_name => ' . $self->type_constraint->name, 'value => ' . $value, @@ -709,7 +709,7 @@ sub _inline_check_constraint { . 'do { local $_ = ' . $value . '; ' . $message . '->(' . $value . ')' . '}', - 'roles => ["Moose::Exception::TypeConstraint"]', + 'class => "Moose::Exception::TypeConstraint"', 'attribute_name => ' . $self->name, 'type_name => ' . $self->type_constraint->name, 'value => ' . $value,