Codebase list libexception-class-dbi-perl / b8c2c98
Removed unused variable and added extra comment. David Wheeler 21 years ago
1 changed file(s) with 3 addition(s) and 3 deletion(s). Raw diff Collapse all Expand all
00 package Exception::Class::DBI;
11
2 # $Id: DBI.pm,v 1.3 2002/08/22 17:34:56 david Exp $
2 # $Id: DBI.pm,v 1.4 2002/08/22 17:36:39 david Exp $
33
44 use 5.00500;
55 use strict;
103103 my $exc = 'Exception::Class::DBI';
104104 # Make it an unknown exception if $dbh isn't a DBI class name.
105105 $exc .= '::Unknown' unless $dbh and UNIVERSAL::isa($dbh, 'DBI');
106 my @params;
107106 if ($DBI::lasth) {
108 # There was a handle. Get the errors.
107 # There was a handle. Get the errors. This may be superfluous,
108 # since the handle ought to be in $dbh.
109109 die $exc->new( error => $err,
110110 errstr => $DBI::errstr,
111111 err => $DBI::err,