Codebase list libexception-class-dbi-perl / 0c776ce
[svn-upgrade] new version libexception-class-dbi-perl (1.01) Nicholas Bamber 12 years ago
14 changed file(s) with 201 addition(s) and 148 deletion(s). Raw diff Collapse all Expand all
22 my $build = Module::Build->new(
33 module_name => 'Exception::Class::DBI',
44 license => 'perl',
5 create_makefile_pl => 'passthrough',
5 create_makefile_pl => 'traditional',
66 configure_requires => { 'Module::Build' => '0.2701' },
7 recommends => { 'Test::Pod' => '1.20' },
7 recommends => { 'Test::Pod' => '1.41' },
88 build_requires => {
99 'Module::Build' => '0.2701',
1010 'Test::More' => '0.17',
1414 'DBI' => '1.28',
1515 'Exception::Class' => '1.02',
1616 },
17 meta_merge => {
18 resources => {
19 homepage => 'http://search.cpan.org/dist/Exception-Class-DBI/',
20 bugtracker => 'http://github.com/theory/exception-class-dbi/issues/',
21 repository => 'http://github.com/theory/exception-class-dbi/',
22 }
23 },
1724 );
1825 $build->create_build_script;
00 Revision history for Perl extension Exception::Class::DBI.
1
2 1.01 2011-06-20T04:27:43
3 - Fixed a warning in `t/sth.t`.
4 - Moved repostitory to
5 [GitHub](https://github.com/theory/exception-class-dbi/).
6 - Switched to a "traditional" `Makefile.PL`.
17
28 1.00 2008-05-22T03:28:50
39 - Fixed a test failure on Perl 5.5. Reported by Slaven Rezic.
22 lib/Exception/Class/DBI.pm
33 Makefile.PL
44 MANIFEST This list of files
5 META.json
56 META.yml
6 README
7 README.md
78 t/dbh.t
89 t/dbi.t
910 t/drh.t
0 {
1 "abstract" : "DBI Exception objects",
2 "author" : [
3 "David E. Wheeler <david@justatheory.com>"
4 ],
5 "dynamic_config" : 1,
6 "generated_by" : "Module::Build version 0.38, CPAN::Meta::Converter version 2.110440",
7 "license" : [
8 "perl_5"
9 ],
10 "meta-spec" : {
11 "url" : "http://search.cpan.org/perldoc?CPAN::Meta::Spec",
12 "version" : "2"
13 },
14 "name" : "Exception-Class-DBI",
15 "prereqs" : {
16 "build" : {
17 "requires" : {
18 "Module::Build" : "0.2701",
19 "Test::Harness" : "2.03",
20 "Test::More" : "0.17"
21 }
22 },
23 "configure" : {
24 "requires" : {
25 "Module::Build" : "0.2701"
26 }
27 },
28 "runtime" : {
29 "recommends" : {
30 "Test::Pod" : "1.41"
31 },
32 "requires" : {
33 "DBI" : "1.28",
34 "Exception::Class" : "1.02"
35 }
36 }
37 },
38 "provides" : {
39 "Exception::Class::DBI" : {
40 "file" : "lib/Exception/Class/DBI.pm",
41 "version" : "1.01"
42 },
43 "Exception::Class::DBI::DBH" : {
44 "file" : "lib/Exception/Class/DBI.pm",
45 "version" : 0
46 },
47 "Exception::Class::DBI::H" : {
48 "file" : "lib/Exception/Class/DBI.pm",
49 "version" : 0
50 },
51 "Exception::Class::DBI::STH" : {
52 "file" : "lib/Exception/Class/DBI.pm",
53 "version" : 0
54 }
55 },
56 "release_status" : "stable",
57 "resources" : {
58 "bugtracker" : {
59 "web" : "http://github.com/theory/exception-class-dbi/issues/"
60 },
61 "homepage" : "http://search.cpan.org/dist/Exception-Class-DBI/",
62 "license" : [
63 "http://dev.perl.org/licenses/"
64 ],
65 "repository" : {
66 "url" : "http://github.com/theory/exception-class-dbi/"
67 }
68 },
69 "version" : "1.01"
70 }
00 ---
1 name: Exception-Class-DBI
2 version: 1.00
1 abstract: 'DBI Exception objects'
32 author:
4 - 'David Wheeler <david@kineticode.com>'
5 abstract: DBI Exception objects
6 license: perl
7 resources:
8 license: http://dev.perl.org/licenses/
9 configure_requires:
10 Module::Build: 0.2701
11 requires:
12 DBI: 1.28
13 Exception::Class: 1.02
3 - 'David E. Wheeler <david@justatheory.com>'
144 build_requires:
155 Module::Build: 0.2701
166 Test::Harness: 2.03
177 Test::More: 0.17
18 recommends:
19 Test::Pod: 1.20
8 configure_requires:
9 Module::Build: 0.2701
10 dynamic_config: 1
11 generated_by: 'Module::Build version 0.38, CPAN::Meta::Converter version 2.110440'
12 license: perl
13 meta-spec:
14 url: http://module-build.sourceforge.net/META-spec-v1.4.html
15 version: 1.4
16 name: Exception-Class-DBI
2017 provides:
2118 Exception::Class::DBI:
2219 file: lib/Exception/Class/DBI.pm
23 version: 1.00
20 version: 1.01
2421 Exception::Class::DBI::DBH:
2522 file: lib/Exception/Class/DBI.pm
23 version: 0
2624 Exception::Class::DBI::H:
2725 file: lib/Exception/Class/DBI.pm
26 version: 0
2827 Exception::Class::DBI::STH:
2928 file: lib/Exception/Class/DBI.pm
30 generated_by: Module::Build version 0.280801
31 meta-spec:
32 url: http://module-build.sourceforge.net/META-spec-v1.2.html
33 version: 1.2
29 version: 0
30 recommends:
31 Test::Pod: 1.41
32 requires:
33 DBI: 1.28
34 Exception::Class: 1.02
35 resources:
36 bugtracker: http://github.com/theory/exception-class-dbi/issues/
37 homepage: http://search.cpan.org/dist/Exception-Class-DBI/
38 license: http://dev.perl.org/licenses/
39 repository: http://github.com/theory/exception-class-dbi/
40 version: 1.01
0 # Note: this file was auto-generated by Module::Build::Compat version 0.2808_01
1
2 unless (eval "use Module::Build::Compat 0.02; 1" ) {
3 print "This module requires Module::Build to install itself.\n";
4
5 require ExtUtils::MakeMaker;
6 my $yn = ExtUtils::MakeMaker::prompt
7 (' Install Module::Build now from CPAN?', 'y');
8
9 unless ($yn =~ /^y/i) {
10 die " *** Cannot install without Module::Build. Exiting ...\n";
11 }
12
13 require Cwd;
14 require File::Spec;
15 require CPAN;
16
17 # Save this 'cause CPAN will chdir all over the place.
18 my $cwd = Cwd::cwd();
19
20 CPAN::Shell->install('Module::Build::Compat');
21 CPAN::Shell->expand("Module", "Module::Build::Compat")->uptodate
22 or die "Couldn't install Module::Build, giving up.\n";
23
24 chdir $cwd or die "Cannot chdir() back to $cwd: $!";
25 }
26 eval "use Module::Build::Compat 0.02; 1" or die $@;
27
28 Module::Build::Compat->run_build_pl(args => \@ARGV);
29 require Module::Build;
30 Module::Build::Compat->write_makefile(build_class => 'Module::Build');
0 # Note: this file was auto-generated by Module::Build::Compat version 0.3800
1 use ExtUtils::MakeMaker;
2 WriteMakefile
3 (
4 'NAME' => 'Exception::Class::DBI',
5 'VERSION_FROM' => 'lib/Exception/Class/DBI.pm',
6 'PREREQ_PM' => {
7 'DBI' => '1.28',
8 'Exception::Class' => '1.02',
9 'Module::Build' => '0.2701',
10 'Test::Harness' => '2.03',
11 'Test::More' => '0.17'
12 },
13 'INSTALLDIRS' => 'site',
14 'EXE_FILES' => [],
15 'PL_FILES' => {}
16 )
17 ;
+0
-49
README less more
0 Exception/Class/DBI version 1.00
1 ================================
2
3 This module offers a set of DBI-specific exception classes. They inherit from
4 Exception::Class::Base, the base class for all exception objects created by
5 the Exception::Class module from the CPAN. Exception::Class::DBI itself offers
6 a single class method, C<handler()>, that returns a code reference appropriate
7 for passing the DBI C<HandleError> attribute.
8
9 The exception classes created by Exception::Class::DBI are designed to be
10 thrown in certain DBI contexts; the code reference returned by handler() and
11 passed to the DBI C<HandleError> attribute determines the context, assembles
12 the necessary metadata, and throws the apopropriate exception.
13
14 Each of the Exception::Class::DBI classes offers a set of object accessor
15 methods in addition to those provided by Exception::Class::Base. These can be
16 used to output detailed output in the event of an exception.
17
18 INSTALLATION
19
20 To install this module, type the following:
21
22 perl Build.PL
23 ./Build
24 ./Build test
25 ./Build install
26
27 Or, if you don't have Module::Build installed, type the following:
28
29 perl Makefile.PL
30 make
31 make test
32 make install
33
34 DEPENDENCIES
35
36 This module requires these other modules and libraries:
37
38 DBI 1.28 or later (1.30 or later strongly recommended).
39 Exception::Class 1.02 or later (1.05 or later strongly recommended).
40 Test::Simple 0.40 (for testing).
41
42 COPYRIGHT AND LICENCE
43
44 Copyright (c) 2002-2008, David Wheeler. Some Rights Reserved.
45
46 This module is free software; you can redistribute it and/or modify it under
47 the same terms as Perl itself.
48
0 Exception/Class/DBI version 1.01
1 ================================
2
3 This module offers a set of DBI-specific exception classes. They inherit from
4 Exception::Class::Base, the base class for all exception objects created by
5 the [Exception::Class](http://search.cpan.org/perldoc?Exception::Class) module
6 from the CPAN. Exception::Class::DBI itself offers a single class method,
7 `handler()`, that returns a code reference appropriate for passing the
8 [DBI](http://search.cpan.org/perldoc?DBI) `HandleError` attribute.
9
10 The exception classes created by Exception::Class::DBI are designed to be
11 thrown in certain DBI contexts; the code reference returned by `handler()` and
12 passed to the DBI `HandleError attribute determines the context, assembles the
13 necessary metadata, and throws the apopropriate exception.
14
15 Each of the Exception::Class::DBI classes offers a set of object accessor
16 methods in addition to those provided by Exception::Class::Base. These can be
17 used to output detailed output in the event of an exception.
18
19 Installation
20 ------------
21
22 To install this module, type the following:
23
24 perl Build.PL
25 ./Build
26 ./Build test
27 ./Build install
28
29 Or, if you don't have Module::Build installed, type the following:
30
31 perl Makefile.PL
32 make
33 make test
34 make install
35
36 Dependencies
37 ------------
38
39 This module requires these other modules and libraries:
40
41 * DBI 1.28 or later (1.30 or later strongly recommended).
42 * Exception::Class 1.02 or later (1.05 or later strongly recommended).
43 * Test::Simple 0.40 (for testing).
44
45 Copyright and Licence
46 ---------------------
47
48 Copyright (c) 2002-2011, David E. Wheeler. Some Rights Reserved.
49
50 This module is free software; you can redistribute it and/or modify it under
51 the same terms as Perl itself.
52
00 package Exception::Class::DBI;
1
2 # $Id: DBI.pm 3906 2008-05-15 03:28:13Z david $
31
42 use 5.00500;
53 use strict;
64 use Exception::Class;
75 use vars qw($VERSION);
8 $VERSION = '1.00';
6 $VERSION = '1.01';
97
108 use Exception::Class (
119 'Exception::Class::DBI' => {
125123 1;
126124 __END__
127125
128 =begin comment
129
130 Fake-out Module::Build. Delete if it ever changes to support =head1 headers
131 other than all uppercase.
132
133 =head1 NAME
134
135 Exception::Class::DBI - DBI Exception objects
136
137 =end comment
138
139126 =head1 Name
140127
141128 Exception::Class::DBI - DBI Exception objects
175162 The exception classes created by Exception::Class::DBI are designed to be
176163 thrown in certain DBI contexts; the code reference returned by C<handler()>
177164 and passed to the DBI C<HandleError> attribute determines the context and
178 throws the apopropriate exception.
165 throws the appropriate exception.
179166
180167 Each of the Exception::Class::DBI classes offers a set of object accessor
181168 methods in addition to those provided by Exception::Class. These can be used
616603
617604 =head1 Support
618605
619 This module is stored in an open repository at the following address:
620
621 L<https://svn.kineticode.com/Exception-Class-DBI/trunk/>
622
623 Patches against Exception::Class::DBI are welcome. Please send bug reports to
624 <bug-exception-class-dbi@rt.cpan.org>.
606 This module is stored in an open L<GitHub
607 repository|http://github.com/theory/exception-class-dbi/>. Feel free to fork
608 and contribute!
609
610 Please file bug reports via L<GitHub
611 Issues|http://github.com/theory/exception-class-dbi/issues/> or by sending
612 mail to
613 L<bug-Exception-Class-DBI.cpan.org|mailto:bug-Exception-Class-DBI.cpan.org>.
625614
626615 =head1 Author
627616
628 =begin comment
629
630 Fake-out Module::Build. Delete if it ever changes to support =head1 headers
631 other than all uppercase.
632
633 =head1 AUTHOR
634
635 =end comment
636
637 David Wheeler <david@kineticode.com>
617 David E. Wheeler <david@justatheory.com>
638618
639619 =head1 See Also
640620
647627
648628 =head1 COPYRIGHT AND LICENSE
649629
650 Copyright (c) 2002-2008, David Wheeler. Some Rights Reserved.
630 Copyright (c) 2002-2011, David E. Wheeler. Some Rights Reserved.
651631
652632 This module is free software; you can redistribute it and/or modify it under
653633 the same terms as Perl itself.
00 #!/usr/bin/perl -w
1
2 # $Id: dbh.t 3917 2008-05-15 17:06:33Z david $
31
42 use strict;
53 use Test::More tests => 27;
00 #!/usr/bin/perl -w
1
2 # $Id: dbi.t 3831 2008-05-06 17:49:25Z david $
31
42 use strict;
53 use Test::More tests => 14;
00 #!/usr/bin/perl -w
1
2 # $Id: drh.t 3831 2008-05-06 17:49:25Z david $
31
42 use strict;
53 use Test::More tests => 21;
00 #!/usr/bin/perl -w
1
2 # $Id: sth.t 3831 2008-05-06 17:49:25Z david $
31
42 use strict;
53 use Test::More tests => 35;
5250 {
5351 # PurePerl->{TraceLevel} should return an integer, but it doesn't. It
5452 # returns undef instead.
55 local $^W;
53 local $SIG{__WARN__} = sub {};
5654 cmp_ok( $err->trace_level, '==', 0, 'Check trace_level' );
5755 }
5856
0 #!perl -w
1
2 # $Id: z_pod.t 3713 2008-05-02 20:25:02Z david $
0 #!/usr/bin/perl -w
31
42 use strict;
53 use Test::More;
6 eval "use Test::Pod 1.20";
7 plan skip_all => "Test::Pod 1.20 required for testing POD" if $@;
4 eval "use Test::Pod 1.41";
5 plan skip_all => "Test::Pod 1.41 required for testing POD" if $@;
86 all_pod_files_ok();