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

Make ClientException a RuntimeException

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.9.5
    • Component/s: Core

      Description

      Today ClientException is a checked exception, so must be caught explicitly.

      But in practice, what we do with it is to rethrow it as a ClientRuntimeException, RuntimeException, CmisRuntimeException, CaseManagementRuntimeException or various others, or return a default value with optionally logging an error.

      Most of the rethrow cases could be eliminated if we made ClientException a RuntimeException. Also the API signatures would be simpler.

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: