diff options
Diffstat (limited to 'lib/Moose/Exception/MetaclassNotLoaded.pm')
-rw-r--r-- | lib/Moose/Exception/MetaclassNotLoaded.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Moose/Exception/MetaclassNotLoaded.pm b/lib/Moose/Exception/MetaclassNotLoaded.pm new file mode 100644 index 0000000..35238a9 --- /dev/null +++ b/lib/Moose/Exception/MetaclassNotLoaded.pm @@ -0,0 +1,13 @@ +package Moose::Exception::MetaclassNotLoaded; +our $VERSION = '2.1405'; + +use Moose; +extends 'Moose::Exception'; +with 'Moose::Exception::Role::Class'; + +sub _build_message { + my $self = shift; + "The Metaclass ".$self->class_name." must be loaded. (Perhaps you forgot to 'use ".$self->class_name."'?)"; +} + +1; |