From: gfx Date: Sun, 19 Jul 2009 09:52:52 +0000 (+0900) Subject: Lazy load Moose::Error::Default X-Git-Tag: 0.88~10 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=d4b0f089e5fc9ddbd38a0bd369bb170c5c62eaef;p=gitmo%2FMoose.git Lazy load Moose::Error::Default --- diff --git a/lib/Moose/Meta/Class.pm b/lib/Moose/Meta/Class.pm index 06e2d23..41e0e9f 100644 --- a/lib/Moose/Meta/Class.pm +++ b/lib/Moose/Meta/Class.pm @@ -17,7 +17,6 @@ our $AUTHORITY = 'cpan:STEVAN'; use Moose::Meta::Method::Overridden; use Moose::Meta::Method::Augmented; -use Moose::Error::Default; use Moose::Meta::Class::Immutable::Trait; use Moose::Meta::Method::Constructor; use Moose::Meta::Method::Destructor; @@ -611,6 +610,7 @@ sub raise_error { sub create_error { my ( $self, @args ) = @_; + require Moose::Error::Default; require Carp::Heavy; local $error_level = ($error_level || 0 ) + 1;