We need to make sure Moose is loaded before using
authorDave Rolsky <autarch@urth.org>
Fri, 20 Feb 2009 18:06:53 +0000 (18:06 +0000)
committerDave Rolsky <autarch@urth.org>
Fri, 20 Feb 2009 18:06:53 +0000 (18:06 +0000)
commit70ea916185583ff7738ef8b8fe6aee48cdce9b23
tree192997c71c2e4fb9e286fb70def8bbb7ecf3ed1a
parent41fd598a19158f1ee95ce05740e9541e574383e0
We need to make sure Moose is loaded before using
Moose->throw_error. Normally Moose is loaded, but in cases where it's
not we end up losing the real error, which is very annoying.
14 files changed:
lib/Moose/Exporter.pm
lib/Moose/Meta/Method/Constructor.pm
lib/Moose/Meta/Role.pm
lib/Moose/Meta/Role/Application/RoleSummation.pm
lib/Moose/Meta/Role/Application/ToRole.pm
lib/Moose/Meta/Role/Composite.pm
lib/Moose/Meta/TypeCoercion.pm
lib/Moose/Meta/TypeCoercion/Union.pm
lib/Moose/Meta/TypeConstraint.pm
lib/Moose/Meta/TypeConstraint/Parameterizable.pm
lib/Moose/Meta/TypeConstraint/Parameterized.pm
lib/Moose/Meta/TypeConstraint/Registry.pm
lib/Moose/Role.pm
lib/Moose/Util.pm