diff options
Diffstat (limited to 'lib/Moose/Exception/BuilderMethodNotSupportedForAttribute.pm')
-rw-r--r-- | lib/Moose/Exception/BuilderMethodNotSupportedForAttribute.pm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/Moose/Exception/BuilderMethodNotSupportedForAttribute.pm b/lib/Moose/Exception/BuilderMethodNotSupportedForAttribute.pm new file mode 100644 index 0000000..648d50c --- /dev/null +++ b/lib/Moose/Exception/BuilderMethodNotSupportedForAttribute.pm @@ -0,0 +1,13 @@ +package Moose::Exception::BuilderMethodNotSupportedForAttribute; +our $VERSION = '2.1405'; + +use Moose; +extends 'Moose::Exception'; +with 'Moose::Exception::Role::Attribute', 'Moose::Exception::Role::Instance'; + +sub _build_message { + my $self = shift; + blessed($self->instance)." does not support builder method '". $self->attribute->builder ."' for attribute '" . $self->attribute->name . "'"; +} + +1; |