« blib/lib/Moose/Exception/CannotAugmentNoSuperMethod.pm
↑ Summary
blib/lib/Moose/Exception/CannotAutoDereferenceTypeConstraint.pm »
| 1 | package Moose::Exception::CannotAutoDerefWithoutIsa; | ||
| 2 | 1 | our $VERSION = '2.4001'; | |
| 3 | |||
| 4 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | 1 | extends 'Moose::Exception'; | |
| 6 | 1 | with 'Moose::Exception::Role::InvalidAttributeOptions'; | |
| 7 | |||
| 8 | 1 | ▶ | sub _build_message { |
|
Subroutine
_build_message: called CC=1 SCAR=0.0
| |||
| 9 | 1 | my $self = shift; | |
| 10 | 1 | "You cannot auto-dereference without specifying a type constraint on attribute (".$self->attribute_name.")"; | |
| 11 | } | ||
| 12 | |||
| 13 | 1 | __PACKAGE__->meta->make_immutable; | |
| 14 | 1 | 1; | |