File Coverage

blib/lib/WebService/Hydra/Exception/HydraRequestError.pm
Criterion Covered Total %
statement 16 16 100.0
branch n/a
condition 2 4 50.0
subroutine 5 5 100.0
pod 0 1 0.0
total 23 26 88.4


line stmt bran cond sub pod time code
1             package WebService::Hydra::Exception::HydraRequestError;
2 5     5   591913 use strict;
  5         23  
  5         263  
3 5     5   30 use warnings;
  5         9  
  5         307  
4 5     5   1458 use Object::Pad;
  5         19864  
  5         31  
5              
6             our $VERSION = '0.005'; ## VERSION
7              
8 2     2   1473 class WebService::Hydra::Exception::HydraRequestError :isa(WebService::Hydra::Exception) {
  2         25  
  2         262  
9              
10             sub BUILDARGS {
11 2     2 0 2823 my ($class, %args) = @_;
12              
13 2   50     22 $args{message} //= 'Sorry, something went wrong while processing your request';
14 2   50     14 $args{category} //= 'hydra';
15              
16 2         30 return %args;
17             }
18             }
19              
20             1;