1package Moose::Exception::AttributeNamesDoNotMatch; 2our $VERSION = '2.2201'; 3 4use Moose; 5extends 'Moose::Exception'; 6 7has attribute_name => ( 8 is => 'ro', 9 isa => 'Str', 10 required => 1, 11); 12 13has attribute => ( 14 is => 'ro', 15 isa => 'Class::MOP::Attribute', 16 required => 1, 17); 18 19sub _build_message { 20 my $self = shift; 21 "attribute_name (".$self-> attribute_name.") does not match attribute->name (".$self->attribute->name.")"; 22} 23 24__PACKAGE__->meta->make_immutable; 251; 26