Improve error mapping in OrchestrationRequests class 95/141395/1
authorFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Sun, 29 Jun 2025 12:13:59 +0000 (14:13 +0200)
committerFiete Ostkamp <Fiete.Ostkamp@telekom.de>
Sun, 29 Jun 2025 12:39:14 +0000 (14:39 +0200)
commit3f00a8619ec005b18525b69eb6cf0252702a67f0
tree9c5a9131819a24ff793371014d811f1f145d87d7
parent37615fa4d65fa30790065a4f51d965c8257e3ddb
Improve error mapping in OrchestrationRequests class

- use status code of request to request-db-adapter in
  ValidationException instead of mapping any kind of
  exception to 404, which can be wildly misleading
- map other exceptions that may be thrown to
  Internal Server Error

Issue-ID: SO-4190
Change-Id: I3f56cfbdab204702fbfdfc95024d1f598e25de9f
Signed-off-by: Fiete Ostkamp <Fiete.Ostkamp@telekom.de>
mso-api-handlers/mso-api-handler-infra/src/main/java/org/onap/so/apihandlerinfra/OrchestrationRequests.java
mso-api-handlers/mso-api-handler-infra/src/test/java/org/onap/so/apihandlerinfra/OrchestrationRequestsTest.java