summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/IsaDoesNotDoTheRole.pm
blob: 3abc897eb8e4afc8ffe00af67b2838bd59d4c6b3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
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;