Juan Hernandez has submitted this change and it was merged.
Change subject: restapi: Add V3 invalid value exception mapper
......................................................................
restapi: Add V3 invalid value exception mapper
The V3 adapters perform conversions from string to enums and the other
way around, and they may fail. When this happens the exception isn't
converted into a error message because the V3 application doesn't have
any exception mapper registered. This patch adds a new invalid value
exception mapper to V3.
Change-Id: I750cc8e3b6cba95ff438b68da4522fdda3acdd57
Signed-off-by: Juan Hernandez <juan.hernandez(a)redhat.com>
---
M
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/V3Application.java
A
backend/manager/modules/restapi/jaxrs/src/main/java/org/ovirt/engine/api/v3/V3InvalidValueExceptionMapper.java
2 files changed, 39 insertions(+), 0 deletions(-)
Approvals:
Juan Hernandez: Verified; Looks good to me, approved
Jenkins CI: Passed CI tests
--
To view, visit
https://gerrit.ovirt.org/55232
To unsubscribe, visit
https://gerrit.ovirt.org/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I750cc8e3b6cba95ff438b68da4522fdda3acdd57
Gerrit-PatchSet: 1
Gerrit-Project: ovirt-engine
Gerrit-Branch: master
Gerrit-Owner: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez(a)redhat.com>
Gerrit-Reviewer: Ori Liel <oliel(a)redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation(a)ovirt.org>