Help for this page

Select Code to Download


  1. or download this
       my $dbh = try {
          DBI->connect(
    ...
       $dbh->{HandleError} = sub { throw Error::Database -text => $DBI::er
    +rstr };
    
       return $dbh;
    
  2. or download this
    package Error::Database;
    
    ...
    }
    
    1;