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

Refactor WebException and clean up usages

    XMLWordPrintable

    Details

    • Type: User story
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 6.0
    • Fix Version/s: QualifiedToSchedule
    • Component/s: WebEngine

      Description

      We should refactor org.nuxeo.ecm.webengine.WebException wrapping in general and provide guidelines to use it (although custom error handlers is already provided).

      Exception wrapping should be reviewed - WebException constructors do not do the same process (for custom http error, basic nuxeo exception checking is not done) -> should be reviewed

      Also the pattern of constantly doing exception management by hand should be factored into the framework. We don't want each method to have:

      
          @GET
          public Object doGet() {
              try {
                  ...
              } catch (ClientException e) {
                  throw WebException.wrap("Failed to do something", e);
              }
          }
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated: