wearefrank / zaakbrug

An app for Dutch municipalities that supports the transition from "zaak- en documentatieservices" (zds) to "zaakgericht werken" (zgw).
https://zaakbrug.nl
European Union Public License 1.2
5 stars 5 forks source link

Ladybug shows "Uncaught exception" for "identificatie-niet-uniek" #258

Closed Geert-Jan-DH closed 8 months ago

Geert-Jan-DH commented 9 months ago

Ladybug shows "Uncaught exception" for "identificatie-niet-uniek"

The pipe PostZgwZaak returns in a creeerZaak:

{"type":"https://openzaak-zgw.denhaag.nl/ref/fouten/ValidationError/"," code":"invalid", "title":"Invalid input.", "status":400,"detail":"", "instance":"urn:uuid:e0464632-291c-4480-ac02-62ef5c24a0f6", "invalidParams":[{"name":"identificatie", "code":"identificatie-niet-uniek", "reason":"Deze identificatie bestaat al voor deze bronorganisatie"}]}

It would be nice if this mesage can be displayed as Status in Ladybug.

MLenterman commented 9 months ago

249 Should help with this. Currently the identificatie-niet-uniek information is lost due to the higher level error handling "Uncaught exception" overwriting it. This feature will nest previous errors, so that information is retained

MLenterman commented 8 months ago

Resolved by #261