This reverts commit
d4b0f089e5fc9ddbd38a0bd369bb170c5c62eaef.
This sort of lazy loading hurts anyone using Moose in a long-running
environment like FastCGI or mod_perl, since it means that the module
ends up being loaded once per process, as opposed to being loaded once
and shared across multiple procs.
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;
sub create_error {
my ( $self, @args ) = @_;
- require Moose::Error::Default;
require Carp::Heavy;
local $error_level = ($error_level || 0 ) + 1;