File Coverage

blib/lib/AnyEvent/CouchDB/Exceptions.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package AnyEvent::CouchDB::Exceptions;
2              
3             use Exception::Class (
4 2         40 'AnyEvent::CouchDB::Exception' => {
5             fields => [ 'headers', 'body' ],
6             },
7             'AnyEvent::CouchDB::Exception::JSONError' => {
8             isa => 'AnyEvent::CouchDB::Exception',
9             description => 'JSON decoding error',
10             },
11             'AnyEvent::CouchDB::Exception::HTTPError' => {
12             isa => 'AnyEvent::CouchDB::Exception',
13             description => 'HTTP error',
14             },
15             'AnyEvent::CouchDB::Exception::UndefinedDocument' => {
16             isa => 'AnyEvent::CouchDB::Exception',
17             description => 'Operation attempted on an undefined document',
18             },
19 2     2   8670 );
  2         31363  
20              
21             AnyEvent::CouchDB::Exception->Trace($ENV{ANYEVENT_COUCHDB_DEBUG});
22              
23             1;
24              
25             __END__