Commit 5c925920 by apoorvnaik

ATLAS-2326 Error code fixes

parent f2342f59
......@@ -655,6 +655,9 @@ public class EntityResource {
} catch (IllegalArgumentException e) {
LOG.error("Bad GUID={} ", guid, e);
throw new WebApplicationException(Servlets.getErrorResponse(e, Response.Status.BAD_REQUEST));
} catch (AtlasBaseException e) {
LOG.error("Unable to get instance definition for GUID {}", guid, e);
throw toWebApplicationException(e);
} catch (WebApplicationException e) {
LOG.error("Unable to get instance definition for GUID {}", guid, e);
throw e;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment