diff options
Diffstat (limited to 'lib/Moose/Exception/CouldNotGenerateInlineAttributeMethod.pm')
-rw-r--r-- | lib/Moose/Exception/CouldNotGenerateInlineAttributeMethod.pm | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/lib/Moose/Exception/CouldNotGenerateInlineAttributeMethod.pm b/lib/Moose/Exception/CouldNotGenerateInlineAttributeMethod.pm new file mode 100644 index 0000000..08ecc44 --- /dev/null +++ b/lib/Moose/Exception/CouldNotGenerateInlineAttributeMethod.pm @@ -0,0 +1,25 @@ +package Moose::Exception::CouldNotGenerateInlineAttributeMethod; +our $VERSION = '2.1405'; + +use Moose; +extends 'Moose::Exception'; +with 'Moose::Exception::Role::Instance'; + +has 'option' => ( + is => 'ro', + isa => 'Str', + required => 1 +); + +has 'error' => ( + is => 'ro', + isa => 'Str|Moose::Exception', + required => 1 +); + +sub _build_message { + my $self = shift; + "Could not generate inline ".$self->option." because : ".$self->error; +} + +1; |