blob: 8bcb7fbf0c49a7c7c7724c90bc91b435b6d22548 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
package Moose::Exception::CouldNotCreateWriter;
our $VERSION = '2.1405';
use Moose;
extends 'Moose::Exception';
with 'Moose::Exception::Role::EitherAttributeOrAttributeName', 'Moose::Exception::Role::Instance';
has 'error' => (
is => 'ro',
isa => 'Str',
required => 1
);
sub _build_message {
my $self = shift;
my $error = $self->error;
my $attribute_name = $self->attribute_name;
return "Could not create writer for '$attribute_name' "
. "because $error";
}
1;
|