Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-17441

Remove StorageException

    XMLWordPrintable

    Details

    • Impact type:
      API change
    • Upgrade notes:
      Hide

      The following internal exceptions were removed and replaced:

      • StorageException -> removed
      • LockException -> NuxeoException
      • FulltextQueryException -> QueryParseException
      • QueryMakerException -> QueryParseException
      • ConcurrentUpdateStorageException -> ConcurrentUpdateException
      • ConcurrentUpdateDocumentException -> ConcurrentUpdateException
      Show
      The following internal exceptions were removed and replaced: StorageException -> removed LockException -> NuxeoException FulltextQueryException -> QueryParseException QueryMakerException -> QueryParseException ConcurrentUpdateStorageException -> ConcurrentUpdateException ConcurrentUpdateDocumentException -> ConcurrentUpdateException

      Description

      Checked exceptions that are not specific are a pain, because catching them tells us nothing. Therefore we should remove StorageException (among others).

      Subclass ConcurrentUpdateStorageException is just caught to be rethrown as ConcurrentUpdateDocumentException which itself is just caught to be rethrown as ConcurrentUpdateException so let's just throw that directly.

      Subclass ConnectionResetException can probably be removed because now we have a pool to do the checks but that's another issue.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: