summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/IsaDoesNotDoTheRole.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Moose/Exception/IsaDoesNotDoTheRole.pm')
-rw-r--r--lib/Moose/Exception/IsaDoesNotDoTheRole.pm13
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Moose/Exception/IsaDoesNotDoTheRole.pm b/lib/Moose/Exception/IsaDoesNotDoTheRole.pm
new file mode 100644
index 0000000..3abc897
--- /dev/null
+++ b/lib/Moose/Exception/IsaDoesNotDoTheRole.pm
@@ -0,0 +1,13 @@
+package Moose::Exception::IsaDoesNotDoTheRole;
+our $VERSION = '2.1405';
+
+use Moose;
+extends 'Moose::Exception';
+with 'Moose::Exception::Role::InvalidAttributeOptions';
+
+sub _build_message {
+ my $self = shift;
+ "Cannot have an isa option and a does option if the isa does not do the does on attribute (".$self->attribute_name.")";
+}
+
+1;