« blib/lib/Moose/Exception/Role/RoleForCreateMOPClass.pm
↑ Summary
blib/lib/Moose/Exception/RoleDoesTheExcludedRole.pm »
| 1 | package Moose::Exception::Role::TypeConstraint; | ||
| 2 | 14 | our $VERSION = '2.4001'; | |
| 3 | |||
| 4 | 14 | ▶ | use Moose::Role; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | 14 | has 'type_name' => ( | |
| 7 | is => 'ro', | ||
| 8 | isa => 'Str', | ||
| 9 | required => 1, | ||
| 10 | documentation => "This attribute can be used for fetching type constraint(Moose::Meta::TypeConstraint):\n". | ||
| 11 | " my \$type_constraint = Moose::Util::TypeConstraints::find_type_constraint( \$exception->type_name );\n", | ||
| 12 | ); | ||
| 13 | |||
| 14 | 14 | 1; | |