File Coverage

blib/lib/CatalystX/RequestModel/Utils/BadRequest.pm
Criterion Covered Total %
statement 6 7 85.7
branch n/a
condition n/a
subroutine 2 3 66.6
pod 0 2 0.0
total 8 12 66.6


line stmt bran cond sub pod time code
1             package CatalystX::RequestModel::Utils::BadRequest;
2            
3 6     6   46 use Moose;
  6         16  
  6         48  
4             with 'CatalystX::Utils::DoesHttpException';
5              
6             has 'class' => (is=>'ro', required=>1);
7             has 'error_trace' => (is=>'ro', required=>1);
8              
9 0     0 0 0 sub status_code { 400 }
10 2     2 0 7991 sub error { "Error trying to create an instance of '@{[ $_[0]->class ]}': @{[ $_[0]->error_trace ]}" }
  2         82  
  2         77  
11              
12             __PACKAGE__->meta->make_immutable;