X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FMoose%2FObject.pm;h=cdab64ef164d90dd16c88650ad1269fdf8a9f1ec;hb=8b1d510fd5c3d348d11dcbe07f313f43e4ac647f;hp=242425f73cf9cbe197382f8ee9ed9f7c5ac49e0e;hpb=e606ae5f848070d889472329819c95f5ba763ca3;p=gitmo%2FMoose.git diff --git a/lib/Moose/Object.pm b/lib/Moose/Object.pm index 242425f..cdab64e 100644 --- a/lib/Moose/Object.pm +++ b/lib/Moose/Object.pm @@ -7,8 +7,6 @@ use warnings; use if ( not our $__mx_is_compiled ), 'Moose::Meta::Class'; use if ( not our $__mx_is_compiled ), metaclass => 'Moose::Meta::Class'; -use Carp 'confess'; - our $VERSION = '0.57'; $VERSION = eval $VERSION; our $AUTHORITY = 'cpan:STEVAN'; @@ -26,7 +24,7 @@ sub BUILDARGS { if (scalar @_ == 1) { if (defined $_[0]) { (ref($_[0]) eq 'HASH') - || $class->throw_error("Single parameters to new() must be a HASH ref", data => $_[0]); + || $class->meta->throw_error("Single parameters to new() must be a HASH ref", data => $_[0]); return {%{$_[0]}}; } else {