summaryrefslogtreecommitdiff
path: root/lib/Moose/Exception/CoercionAlreadyExists.pm
blob: 53342d809793cba0f9eb2baafdf8de7a8391089b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
package Moose::Exception::CoercionAlreadyExists;
our $VERSION = '2.1405';

use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::Instance';

has 'constraint_name' => (
    is       => 'ro',
    isa      => 'Str',
    required => 1
);

sub _build_message {
    my $self = shift;
    "A coercion action already exists for '".$self->constraint_name."'";
}

1;