Uploaded image for project: 'Camunda Optimize'
  1. Camunda Optimize
  2. OPT-765

Handle errors in rest endpoints using an interceptor

    XMLWordPrintable

Details

    • Task
    • Resolution: Fixed
    • L3 - Default
    • 2.0.0, 2.0-alpha1
    • None
    • backend
    • None

    Description

      AT:

      • use an interceptor to hand errors in the rest endpoints
      • it is assured that the error message in the 500 response has the same structure as it is now
      • the RestResponseUtil#buildServerErrorResponse methods should not be used anymore

      Background:
      Right now we use the RestResponseUtil to handle errors. However, we have to call the method in every endpoint where an error can occur and also enunicate can't create proper documentation about the responses.

      mgm-controller-panel

        This is the controller panel for Smart Panels app

        Attachments

          Issue Links

            Activity

              People

                Unassigned Unassigned
                johannes.heinemann Johannes
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  Salesforce