Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-3783

LOBStreamControl shouldn't throw SQLException

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.4.2.0, 10.5.1.1
    • Fix Version/s: 10.4.2.0, 10.5.1.1
    • Component/s: JDBC
    • Labels:
      None

      Description

      LOBStreamControl throws three types of exceptions: IOException, SQLException and StandardException.
      All the SQLException are generated/thrown from the code in LOBStreamControl.
      At this level of the code, SQLException should not be thrown, as it is more tedious to handle both SQLException and StandardException at higher levels.

      I propose to replace SQLException with StandardException in LOBStreamControl. The purpose of this change is consistency, and also results it slightly less code at higher levels.

        Attachments

        1. d3783-initCause.diff
          7 kB
          Knut Anders Hatlen
        2. derby-3783-1a-dont_throw_sqlexception.diff
          14 kB
          Kristian Waagan
        3. derby-3783-1a-dont_throw_sqlexception.stat
          0.3 kB
          Kristian Waagan

          Issue Links

            Activity

              People

              • Assignee:
                kristwaa Kristian Waagan
                Reporter:
                kristwaa Kristian Waagan
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: