Change in ovirt-engine[master]: restapi: Add V3 invalid value exception mapper

juan.hernandez at redhat.com juan.hernandez at redhat.com
Thu Mar 24 19:36:15 UTC 2016


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 at 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 at redhat.com>
Gerrit-Reviewer: Jenkins CI
Gerrit-Reviewer: Juan Hernandez <juan.hernandez at redhat.com>
Gerrit-Reviewer: Ori Liel <oliel at redhat.com>
Gerrit-Reviewer: gerrit-hooks <automation at ovirt.org>



More information about the Engine-commits mailing list