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:
parent
2255e7feaa
commit
d3aca98c26
|
@ -345,7 +345,7 @@ public class MLanguage extends X_AD_Language
|
|||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -397,7 +397,7 @@ public class MLanguage extends X_AD_Language
|
|||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -212,7 +212,7 @@ public class Query
|
|||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
} finally {
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
|
@ -245,7 +245,7 @@ public class Query
|
|||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
} finally {
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
|
@ -284,7 +284,7 @@ public class Query
|
|||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -397,7 +397,7 @@ public class Query
|
|||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
@ -448,7 +448,7 @@ public class Query
|
|||
return true;
|
||||
}
|
||||
catch (SQLException e) {
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
}
|
||||
finally {
|
||||
DB.close(rs, pstmt);
|
||||
|
@ -494,7 +494,7 @@ public class Query
|
|||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
} finally {
|
||||
DB.close(rs, pstmt);
|
||||
rs = null; pstmt = null;
|
||||
|
@ -525,7 +525,7 @@ public class Query
|
|||
catch (SQLException e)
|
||||
{
|
||||
log.log(Level.SEVERE, sql, e);
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
|
@ -182,7 +182,7 @@ public class Tax
|
|||
}
|
||||
catch (SQLException e)
|
||||
{
|
||||
throw new DBException(e);
|
||||
throw new DBException(e, sql);
|
||||
}
|
||||
finally
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue