> +                     stmt.close();
> +                 } catch (SQLException sqlEx) { } // ignore - you might get 
> an exception if closing out of order
> +
> +                 stmt = null;
> +             }
> +             
> +             if(conn != null)
> +                try {
> +                   conn.close();
> +                } catch (SQLException sqlEx) { } // ignore - rare bugs not 
> necessarily related to a specific database
> +         }
> +     } catch (SQLException ex) {
> +         // handle any errors
> +         System.out.println("SQLException: " + ex.getMessage());
> +         System.out.println("SQLState: " + ex.getSQLState());
> +         System.out.println("VendorError: " + ex.getErrorCode());

I think you'll still want to do a e.printStackTrace() here.

All of the other exception handling just names the Exception variable e so do 
that here too.

---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-examples/pull/6/files#r5281265

Reply via email to