Package com.agiletec.aps.system.exception

Examples of com.agiletec.aps.system.exception.ApsSystemException


    try {
      this.sendMessageNotification(message);
      this.addMessage(message);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addMessage");
      throw new ApsSystemException("Error saving message", t);
    }
  }
View Full Code Here


  public void deleteMessage(String messageId) throws ApsSystemException {
    try {
      this.getMessageDAO().deleteEntity(messageId);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "deleteMessage");
      throw new ApsSystemException("Error deleting message " + messageId, t);
    }
  }
View Full Code Here

        } while (null != message.getAttribute(uniqueCode));
        uniqueCode = currentCode;
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "buildHoneypotCode");
      throw new ApsSystemException("Errore creating honeypot code", t);
    }
    return uniqueCode;
  }
View Full Code Here

      this.getMessageDAO().addAnswer(answer);
      boolean sent = this.sendAnswerNotification(answer);
      return sent;
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addAnswer");
      throw new ApsSystemException("Error saving answer", t);
    }
  }
View Full Code Here

  public List<Answer> getAnswers(String messageId) throws ApsSystemException {
    try {
      return this.getMessageDAO().loadAnswers(messageId);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addMessage");
      throw new ApsSystemException("Error saving message", t);
    }
  }
View Full Code Here

      } else {
        ApsSystemUtils.getLogger().warn("Message notification not sent! Message lacking in notifier configuration.");
      }
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "sendMessageNotification");
      throw new ApsSystemException("Error sending notification to message " + message.getId(), t);
    }
    return sent;
  }
View Full Code Here

      comment.setCreationDate(new Date());
      this.getCommentDAO().addComment(comment);
            this.notifyEvent(comment.getContentId(), -1, ContentFeedbackChangedEvent.CONTENT_COMMENT, ContentFeedbackChangedEvent.INSERT_OPERATION_CODE);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "addComment");
      throw new ApsSystemException("Error add comment", t);
    }
  }
View Full Code Here

        this.deleteComment(Integer.parseInt(ids.get(i)));
      }
            this.notifyEvent(contentId, -1, ContentFeedbackChangedEvent.CONTENT_COMMENT, ContentFeedbackChangedEvent.REMOVE_OPERATION_CODE);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "deleteAllComments");
      throw new ApsSystemException("Error while remove all comment", t);
    }
  }
View Full Code Here

    try {
      this.getCommentDAO().deleteComment(id);
            this.notifyEvent(null, id, ContentFeedbackChangedEvent.CONTENT_COMMENT, ContentFeedbackChangedEvent.REMOVE_OPERATION_CODE);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "deleteComment");
      throw new ApsSystemException("Error while remove comment", t);
    }
  }
View Full Code Here

    IComment comment = null;
    try {
      comment = this.getCommentDAO().getComment(id);
    } catch (Throwable t) {
      ApsSystemUtils.logThrowable(t, this, "getComment");
      throw new ApsSystemException("Error while extract comment", t);
    }
    return comment;
  }
View Full Code Here

TOP

Related Classes of com.agiletec.aps.system.exception.ApsSystemException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.