File Coverage

blib/lib/WebService/Hydra/Exception/InternalServerError.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::InternalServerError;
2 5     5   264209 use strict;
  5         13  
  5         272  
3 5     5   31 use warnings;
  5         12  
  5         311  
4 5     5   821 use Object::Pad;
  5         21288  
  5         62  
5              
6             our $VERSION = '0.005'; ## VERSION
7              
8 1     1   3116 class WebService::Hydra::Exception::InternalServerError :isa(WebService::Hydra::Exception) {
  1         23  
  1         165  
9              
10             sub BUILDARGS {
11 1     1 0 1415 my ($class, %args) = @_;
12              
13 1   50     10 $args{message} //= 'Internal server error';
14 1   50     7 $args{category} //= 'server';
15              
16 1         13 return %args;
17             }
18             }
19              
20             1;