Skip to content

Commit

Permalink
log root cause stack trace. helped w/ debugging h2 bug.
Browse files Browse the repository at this point in the history
  • Loading branch information
chenson42 committed Jun 4, 2010
1 parent 021d691 commit 7f078d0
Showing 1 changed file with 5 additions and 0 deletions.
Expand Up @@ -105,6 +105,11 @@ public void fire(Connection conn, Object[] oldRow, Object[] newRow) throws SQLEx
stmt.close();
} catch (SQLException ex) {
System.err.println("This sql failed: " + sql);
Throwable rootException = ex;
while (rootException.getCause() != null && !rootException.getCause().equals(ex)) {
rootException = ex.getCause();
}
rootException.printStackTrace();
throw ex;
}
}
Expand Down

0 comments on commit 7f078d0

Please sign in to comment.