summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CannotFindDelegateMetaclass.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/CannotFindDelegateMetaclass.pm')
-rw-r--r--lib/Moose/Exception/CannotFindDelegateMetaclass.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Moose/Exception/CannotFindDelegateMetaclass.pm b/lib/Moose/Exception/CannotFindDelegateMetaclass.pm
new file mode 100644
index 0000000..5cbb744
--- /dev/null
+++ b/lib/Moose/Exception/CannotFindDelegateMetaclass.pm
@@ -0,0 +1,13 @@
+package Moose::Exception::CannotFindDelegateMetaclass;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+with 'Moose::Exception::Role::Attribute';
+
+sub _build_message {
+ my $self = shift;
+ "Cannot find delegate metaclass for attribute ".$self->attribute->name;
+}
+
+1;