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

Deprecate DocumentException

    XMLWordPrintable

    Details

    • Upgrade notes:
      Hide

      The only visible developer change is that NoSuchDocumentException is no more wrapped in a ClientException when bubbling up to application code. So code should not catch ClientException but directly catch NoSuchDocumentException.

      The following exception is deprecated and unused in Nuxeo code, it is kept for backward compatibility for security policies, versioning policies and blob dispatcher code that declare it.

      • DocumentException

      The following exceptions are removed:

      • PropertyExistsException (unused)
      • PropertyTypeException (unused)
      • NoSuchRepositoryException (unused)
      • org.nuxeo.ecm.core.security.SecurityException

      The following exception is replaced:

      • NoSuchPropertyException -> PropertyNotFoundException
      Show
      The only visible developer change is that NoSuchDocumentException is no more wrapped in a ClientException when bubbling up to application code. So code should not catch ClientException but directly catch NoSuchDocumentException. The following exception is deprecated and unused in Nuxeo code, it is kept for backward compatibility for security policies, versioning policies and blob dispatcher code that declare it. DocumentException The following exceptions are removed: PropertyExistsException (unused) PropertyTypeException (unused) NoSuchRepositoryException (unused) org.nuxeo.ecm.core.security.SecurityException The following exception is replaced: NoSuchPropertyException -> PropertyNotFoundException

      Description

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

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  PagerDuty

                  Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.