diff options
Diffstat (limited to 'lib/Moose/Exception/IsaLacksDoesMethod.pm')
-rw-r--r-- | lib/Moose/Exception/IsaLacksDoesMethod.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Moose/Exception/IsaLacksDoesMethod.pm b/lib/Moose/Exception/IsaLacksDoesMethod.pm new file mode 100644 index 0000000..1ba2a85 --- /dev/null +++ b/lib/Moose/Exception/IsaLacksDoesMethod.pm @@ -0,0 +1,13 @@ +package Moose::Exception::IsaLacksDoesMethod; +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 which cannot ->does() on attribute (".$self->attribute_name.")"; +} + +1; |