File Coverage

blib/lib/DBIx/TextIndex/Exception.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package DBIx::TextIndex::Exception;
2              
3 8     8   47 use strict;
  8         18  
  8         340  
4 8     8   47 use warnings;
  8         14  
  8         1105  
5              
6             our $VERSION = '0.26';
7              
8             use Exception::Class (
9 8         192 'DBIx::TextIndex::Exception',
10              
11             'DBIx::TextIndex::Exception::Fatal' =>
12             { isa => 'DBIx::TextIndex::Exception',
13             fields => [ 'detail' ] },
14              
15             'DBIx::TextIndex::Exception::Fatal::General' =>
16             { isa => 'DBIx::TextIndex::Exception::Fatal',
17             fields => [ 'detail' ],
18             alias => 'throw_gen' },
19              
20             'DBIx::TextIndex::Exception::Query' =>
21             { isa => 'DBIx::TextIndex::Exception',
22             fields => [ 'detail' ],
23             alias => 'throw_query' },
24 8     8   8647 );
  8         123091  
25              
26             require Exporter;
27             *import = \&Exporter::import;
28              
29             our @EXPORT_OK = qw(throw_gen throw_query);
30             our %EXPORT_TAGS = (all => \@EXPORT_OK);
31              
32             1;
33             __END__