The methods in QueryExecutionListener don't allow to throw SQLException right now. Unfortunately almost all methods in the Statement (as part of ExecutionInfo) declare to throw SQLException when being invoked.
From what I can tell it should be safe to allow SQLException to be thrown there since all methods in Statement and PreparedStatement that invoke the listener allow to throw SQLException as well.
The methods in
QueryExecutionListenerdon't allow to throwSQLExceptionright now. Unfortunately almost all methods in theStatement(as part ofExecutionInfo) declare to throwSQLExceptionwhen being invoked.From what I can tell it should be safe to allow
SQLExceptionto be thrown there since all methods inStatementandPreparedStatementthat invoke the listener allow to throwSQLExceptionas well.