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

Handle errors in rest endpoints using an interceptor

XMLWordPrintable

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

      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.

        This is the controller panel for Smart Panels app

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

                Created:
                Updated:
                Resolved: