File Coverage

blib/lib/NewsExtractor/Error.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 NewsExtractor::Error;
2 1     1   10 use Moo;
  1         2  
  1         10  
3 1     1   1034 use NewsExtractor::Types qw<Bool Text HashRef>;
  1         4  
  1         15  
4              
5             has is_exception => ( required => 1, is => 'ro', isa => Bool, default => 0 );
6             has message => ( required => 1, is => 'ro', isa => Text );
7             has debug => ( required => 0, is => 'ro', isa => HashRef );
8              
9             1;