665666667668669670671672673674675
articleId); try { ret.put(Keys.STATUS_CODE, StatusCodes.PUT_TOP_ARTICLE_FAIL_); } catch (final JSONException ex) { LOGGER.severe(ex.getMessage()); throw new ActionException(e); } } PageCaches.removeAll();
729730731732733734735736737738739
articleId); try { ret.put(Keys.STATUS_CODE, StatusCodes.CANCEL_TOP_ARTICLE_FAIL_); } catch (final JSONException ex) { LOGGER.severe(ex.getMessage()); throw new ActionException(e); } } PageCaches.removeAll();
10311032103310341035103610371038103910401041
try { ret.put(Keys.STATUS_CODE, StatusCodes.CANCEL_PUBLISH_ARTICLE_FAIL_); } catch (final JSONException ex) { LOGGER.severe(ex.getMessage()); throw new ActionException(e); } return ret; }
165166167168169170171172173174175
} catch (final Exception e) { if (transaction.isActive()) { transaction.rollback(); } LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } PageCaches.removeAll(); return ret;
236237238239240241242243244245246
280281282283284285286287288289
ret.put(Keys.STATUS_CODE, StatusCodes.GET_USER_SUCC); LOGGER.log(Level.FINER, "Got a user[oId={0}]", userId); } catch (final Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }
358359360361362363364365366367
ret.put(User.USERS, users); ret.put(Keys.STATUS_CODE, StatusCodes.GET_USERS_SUCC); } catch (final Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }
449450451452453454455456457458459
516517518519520521522523524525526
transaction.commit(); break; } catch (final Exception e) { if (0 == retries) { LOGGER.log(Level.SEVERE, "Initialize B3log Solo error", e); throw new ActionException("Initailize B3log Solo error!"); } // Allow retry to occur --retries; LOGGER.log(Level.WARNING,
110111112113114115116117118119
for (int i = 1; i < allSigns.length(); i++) { // excludes the empty sign ret.put(allSigns.getJSONObject(i)); } } catch (final Exception e) { LOGGER.log(Level.SEVERE, e.getMessage(), e); throw new ActionException(e); } return ret; }