blib/lib/Catalyst/Exception/MissingParameter.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 6 | 6 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 2 | 2 | 100.0 |
pod | n/a | ||
total | 8 | 8 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package Catalyst::Exception::MissingParameter; | ||||||
2 | |||||||
3 | 2 | 2 | 17 | use Moose; | |||
2 | 6 | ||||||
2 | 32 | ||||||
4 | 2 | 2 | 14646 | use namespace::clean -except => 'meta'; | |||
2 | 6 | ||||||
2 | 24 | ||||||
5 | |||||||
6 | extends 'Catalyst::Exception::StructuredParameter'; | ||||||
7 | |||||||
8 | has 'param' => (is=>'ro', required=>1); | ||||||
9 | has '+errors' => (init_arg=>undef, default=>sub { ["Required parameter '@{[ $_[0]->param ]}' is missing."] }); | ||||||
10 | |||||||
11 | __PACKAGE__->meta->make_immutable; |