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

LOBStreamControl shouldn't throw SQLException

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.4.2.0, 10.5.1.1
    • 10.4.2.0, 10.5.1.1
    • JDBC
    • 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.stat
          0.3 kB
          Kristian Waagan
        3. derby-3783-1a-dont_throw_sqlexception.diff
          14 kB
          Kristian Waagan

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: