File Coverage

blib/lib/DBIx/Changeset/Exception.pm
Criterion Covered Total %
statement 13 13 100.0
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 18 100.0


line stmt bran cond sub pod time code
1             package DBIx::Changeset::Exception;
2              
3 12     12   53973 use warnings;
  12         189  
  12         697  
4 12     12   62 use strict;
  12         20  
  12         398  
5              
6 12     12   63 use vars qw{$VERSION};
  12         25  
  12         927  
7             BEGIN {
8 12     12   1073 $VERSION = '1.11';
9             }
10              
11             =head1 NAME
12              
13             DBIx::Changeset::Exceptions - the Exceptions base
14              
15             =head1 EXCEPTIONS
16              
17             =cut
18              
19             use Exception::Class (
20 12         217 'DBIx::Changeset::Exception::ObjectCreateException' => { description => 'Object Creation Error' },
21             'DBIx::Changeset::Exception::ReadRecordException' => { description => 'Could not write from record' },
22             'DBIx::Changeset::Exception::WriteRecordException' => { description => 'Could not write to record' },
23             'DBIx::Changeset::Exception::DuplicateRecordNameException' => { description => 'Could create record as it already exists', fields => [ 'filename' ] },
24             'DBIx::Changeset::Exception::ReadCollectionException' => { description => 'Could not read from collections changeset_location' },
25             'DBIx::Changeset::Exception::MissingAddTemplateException' => { description => 'Could not read create_template' },
26             'DBIx::Changeset::Exception::LoaderException' => { description => 'Could not load changeset record into database' },
27             'DBIx::Changeset::Exception::ReadHistoryRecordException' => { description => 'Could not read from history record' },
28             'DBIx::Changeset::Exception::WriteHistoryRecordException' => { description => 'Could not write to history record' },
29 12     12   11699 );
  12         142178  
30              
31             =head1 COPYRIGHT & LICENSE
32              
33             Copyright 2004-2008 Grox Pty Ltd.
34              
35             This program is free software; you can redistribute it and/or modify it
36             under the same terms as Perl itself.
37              
38             The full text of the license can be found in the LICENSE file included with this module.
39              
40             =cut
41              
42             1; # End of DBIx::Changeset::Exceptions