diff options
Diffstat (limited to 'lib/Moose/Exception/BuilderMethodNotSupportedForInlineAttribute.pm')
-rw-r--r-- | lib/Moose/Exception/BuilderMethodNotSupportedForInlineAttribute.pm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Moose/Exception/BuilderMethodNotSupportedForInlineAttribute.pm b/lib/Moose/Exception/BuilderMethodNotSupportedForInlineAttribute.pm new file mode 100644 index 0000000..9757e65 --- /dev/null +++ b/lib/Moose/Exception/BuilderMethodNotSupportedForInlineAttribute.pm @@ -0,0 +1,25 @@ +package Moose::Exception::BuilderMethodNotSupportedForInlineAttribute; +our $VERSION = '2.1405'; + +use Moose; +extends 'Moose::Exception'; +with 'Moose::Exception::Role::Instance', 'Moose::Exception::Role::Class'; + +has 'attribute_name' => ( + is => 'ro', + isa => 'Str', + required => 1 +); + +has 'builder' => ( + is => 'ro', + isa => 'Str', + required => 1 +); + +sub _build_message { + my $self = shift; + $self->class_name." does not support builder method '". $self->builder ."' for attribute '" . $self->attribute_name . "'"; +} + +1; |