Use DBException(SQLException e, String sql) when possible

https://sourceforge.net/tracker/?func=detail&aid=2780418&group_id=176962&atid=879335
This commit is contained in:
teo_sarca 2009-04-24 13:22:46 +00:00
parent 2255e7feaa
commit d3aca98c26
3 changed files with 10 additions and 10 deletions

View File

@ -345,7 +345,7 @@ public class MLanguage extends X_AD_Language
} }
catch (SQLException e) catch (SQLException e)
{ {
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {
@ -397,7 +397,7 @@ public class MLanguage extends X_AD_Language
} }
catch (SQLException e) catch (SQLException e)
{ {
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {

View File

@ -212,7 +212,7 @@ public class Query
catch (SQLException e) catch (SQLException e)
{ {
log.log(Level.SEVERE, sql, e); log.log(Level.SEVERE, sql, e);
throw new DBException(e); throw new DBException(e, sql);
} finally { } finally {
DB.close(rs, pstmt); DB.close(rs, pstmt);
rs = null; pstmt = null; rs = null; pstmt = null;
@ -245,7 +245,7 @@ public class Query
catch (SQLException e) catch (SQLException e)
{ {
log.log(Level.SEVERE, sql, e); log.log(Level.SEVERE, sql, e);
throw new DBException(e); throw new DBException(e, sql);
} finally { } finally {
DB.close(rs, pstmt); DB.close(rs, pstmt);
rs = null; pstmt = null; rs = null; pstmt = null;
@ -284,7 +284,7 @@ public class Query
catch (SQLException e) catch (SQLException e)
{ {
log.log(Level.SEVERE, sql, e); log.log(Level.SEVERE, sql, e);
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {
@ -397,7 +397,7 @@ public class Query
} }
catch (SQLException e) catch (SQLException e)
{ {
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {
@ -448,7 +448,7 @@ public class Query
return true; return true;
} }
catch (SQLException e) { catch (SQLException e) {
throw new DBException(e); throw new DBException(e, sql);
} }
finally { finally {
DB.close(rs, pstmt); DB.close(rs, pstmt);
@ -494,7 +494,7 @@ public class Query
catch (SQLException e) catch (SQLException e)
{ {
log.log(Level.SEVERE, sql, e); log.log(Level.SEVERE, sql, e);
throw new DBException(e); throw new DBException(e, sql);
} finally { } finally {
DB.close(rs, pstmt); DB.close(rs, pstmt);
rs = null; pstmt = null; rs = null; pstmt = null;
@ -525,7 +525,7 @@ public class Query
catch (SQLException e) catch (SQLException e)
{ {
log.log(Level.SEVERE, sql, e); log.log(Level.SEVERE, sql, e);
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {

View File

@ -182,7 +182,7 @@ public class Tax
} }
catch (SQLException e) catch (SQLException e)
{ {
throw new DBException(e); throw new DBException(e, sql);
} }
finally finally
{ {