blib/lib/Catalyst/Exception/StructuredParameter.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::StructuredParameter; | ||||||
2 | |||||||
3 | 2 | 2 | 1409 | use Moose; | |||
2 | 6 | ||||||
2 | 16 | ||||||
4 | 2 | 2 | 14629 | use namespace::clean -except => 'meta'; | |||
2 | 18 | ||||||
2 | 22 | ||||||
5 | |||||||
6 | extends 'CatalystX::Utils::HttpException'; | ||||||
7 | |||||||
8 | has '+status' => (is=>'ro', init_arg=>undef, default=>sub {400}); | ||||||
9 | has '+errors' => (is=>'ro', init_arg=>undef, default=>sub { ["General error with structured parameters."] }); | ||||||
10 | |||||||
11 | __PACKAGE__->meta->make_immutable; |