« blib/lib/Moose/Exception/DelegationToARoleWhichIsNotLoaded.pm
↑ Summary
blib/lib/Moose/Exception/DoesRequiresRoleName.pm »
| 1 | package Moose::Exception::DelegationToATypeWhichIsNotAClass; | ||
| 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::Attribute'; | |
| 7 | |||
| 8 | 4 | ▶ | sub _build_message { |
|
Subroutine
_build_message: called CC=1 SCAR=0.0
| |||
| 9 | 4 | my $self = shift; | |
| 10 | 4 | "The ".$self->attribute->name." attribute is trying to delegate to a type (".$self->attribute->type_constraint->name.") that is not backed by a class"; | |
| 11 | } | ||
| 12 | |||
| 13 | 1 | __PACKAGE__->meta->make_immutable; | |
| 14 | 1 | 1; | |