Uploaded image for project: 'IronJacamar'
  1. IronJacamar
  2. JBJCA-1474

Throw more specific SQL exceptions

    XMLWordPrintable

Details

    Description

      When a request is made after a timeout SQLTimeoutException instead of SQLException should be thrown.

      When a request is made after a rollback SQLTransactionRollbackException instead of SQLException should be thrown.

      Sometimes our code makes requests after a timeout. IronJacamar currently throws SQLException in these cases because the transaction was rolled back. Throwing SQLTransactionRollbackException instead would allow us to identify these cases more easily and reliably and provide more helpful instructions to users and supporters.

      Attachments

        Activity

          People

            tadamski@redhat.com Tomasz Adamski
            pmarscha Philippe Marschall (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: