Uploaded image for project: 'Commons DbUtils'
  1. Commons DbUtils
  2. DBUTILS-4

[dbutils] ResultSetIterator should rethrow SQLExceptions as RuntimException

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: Nightly Builds
    • Fix Version/s: 1.1
    • Labels:
      None
    • Environment:

      Operating System: other
      Platform: Other

    • Bugzilla Id:
      32120

      Description

      SQLExceptions are not handled.
      See TODOs in org.apache.commons.dbutils.ResultSetIterator.java

      From discussion in COM-1333
      I do not think that swallowing the exception would be a good decission, the user
      (of DbUtils) should know something went wrong and we should not hide application
      bugs and make debugging more difficult.

      I would implement this myself if nobody objects.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stefan.fleiter@web.de Stefan Fleiter
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: