340341342343344345346347348349350
if (transaction.isActive()) { transaction.rollback(); } LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } PageCaches.removeAll(); return ret;
143144145146147148149150151152153
try { ret.put(Keys.STATUS_CODE, StatusCodes.REMOVE_UNUSED_TAGS_FAIL_); } catch (final JSONException ex) { LOGGER.severe(ex.getMessage()); throw new ActionException(e); } } return ret; }
218219220221222223224225226227
pagination.put(Pagination.PAGINATION_PAGE_NUMS, pageNums); ret.put(Keys.STATUS_CODE, StatusCodes.GET_COMMENTS_SUCC); } catch (final Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }
290291292293294295296297298299
ret.put(Comment.COMMENTS, comments); ret.put(Keys.STATUS_CODE, StatusCodes.GET_COMMENTS_SUCC); } catch (final Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }
363364365366367368369370371372
443444445446447448449450451452
} catch (final Exception e) { if (transaction.isActive()) { transaction.rollback(); } LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }
517518519520521522523524525526
400401402403404405406407408409
ret.put(Keys.STATUS_CODE, StatusCodes.GET_ARTICLE_SUCC); LOGGER.log(Level.FINER, "Got an article[oId={0}]", articleId); } catch (final Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }
513514515516517518519520521522
ret.put(ARTICLES, articles); ret.put(Keys.STATUS_CODE, StatusCodes.GET_ARTICLES_SUCC); } catch (final Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }
601602603604605606607608609610611
} catch (final Exception e) { if (transaction.isActive()) { transaction.rollback(); } LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } PageCaches.removeAll(); return ret;