@ExceptionHandler(RelationshipConstraintException.class) public void handleException(RelationshipConstraintException e, HttpServletRequest req, HttpServletResponse resp) { log.debug("Handling exception [" + e.getClass() + "] [" + e.getMessage() + "]"); resp.setStatus(HttpStatus.SC_INTERNAL_SERVER_ERROR); try { resp.getWriter().print(e.getMessage()); resp.getWriter().flush(); resp.getWriter().close(); } catch (Exception ee) { log.debug("Handling exception", e); } }
@ExceptionHandler(RelationshipConstraintException.class) public void handleException(RelationshipConstraintException e, HttpServletRequest req, HttpServletResponse resp) { log.debug("Handling exception [" + e.getClass() + "] [" + e.getMessage() + "]"); resp.setStatus(HttpStatus.SC_INTERNAL_SERVER_ERROR); try { resp.getWriter().print(e.getMessage()); resp.getWriter().flush(); resp.getWriter().close(); } catch (Exception ee) { log.debug("Handling exception", e); } }
throw new BizInternalException("Error occurred when checking for CREATE permission of provided user. " + e.getMessage()); log.warn( "Could not update collection relationships for Collection (" + collection.getId() + "): " + e.getMessage(), e);
throw new BizInternalException("Error occurred when checking for CREATE permission of provided user. " + e.getMessage()); log.warn( "Could not update collection relationships for Collection (" + collection.getId() + "): " + e.getMessage(), e);