In REST API, improve exception handling #4824
Labels
scope:core-api
Changes to the core API: engine, dmn-engine, feel-engine, REST API, OpenAPI
type:task
Issues that are a change to the project that is neither a feature nor a bug fix.
version:7.23.0-alpha2
version:7.23.0
Created on behalf of #4600
Context
While implementing custom exception handling for my Camunda REST API, I used the
ExceptionHandlerHelper
class from theengine-rest
module to ensure that the behavior of error handling is consistent with the built-in Camunda REST API error handling. The custom exception handler code is as follows:However, the
code
field value in the response body (ExceptionDto
) was alwaysnull
, resulting in outputs like the following:Acceptance Criteria (Required on creation)
ExceptionHandlerHelper
by providing exception code already inorg.camunda.bpm.engine.rest.exception.ExceptionHandlerHelper.fromException(Throwable)
Hints
Links
Breakdown
Pull Requests
Dev2QA handover
The text was updated successfully, but these errors were encountered: