Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-6773 Derby throws plain SQLIntegrityConstraintViolationException
  3. DERBY-6803

Change Sqlca and SqlException in NetworkClient to call MessageUtils

    XMLWordPrintableJSON

Details

    • Sub-task
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • None
    • None
    • None

    Description

      Currently, the network client code is not able to access the arguments
      that are associated with a Derby exception that is returned by the engine.

      We would like to change the network client code, specifically the code
      in the Sqlca and SqlException classes, so that it uses the new MessageUtils
      class to access the exception arguments.

      We wish to take the exception arguments and associate them with the
      SqlException object, so that when the client calls the SQLExceptionFactory
      to create a SQLException to throw to the user application, it can create
      a Derby-specific subclass of that exception, when appropriate, which
      contains the arguments that the server sent to the client.

      Attachments

        1. clientOutline.diff
          3 kB
          Bryan Pendleton
        2. MessageUtils_1.diff
          50 kB
          Abhinav Gupta
        3. MessageUtils_2.diff
          53 kB
          Abhinav Gupta
        4. clientChanges.diff
          8 kB
          Bryan Pendleton
        5. sqlca.diff
          38 kB
          Abhinav Gupta

        Activity

          People

            mac777 Abhinav Gupta
            bryanpendleton Bryan Pendleton
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: