Package it.eng.spago.error

Examples of it.eng.spago.error.EMFAbstractError


    EMFErrorHandler errorHandler = getErrorHandler();
    if (!errorHandler.isOKBySeverity(EMFErrorSeverity.ERROR)) {
      Collection errors = errorHandler.getErrors();
      Iterator it = errors.iterator();
      while (it.hasNext()) {
        EMFAbstractError error = (EMFAbstractError) it.next();
        if (error.getSeverity().equals(EMFErrorSeverity.ERROR)) {
          throw new SpagoBIEngineServiceException(getActionName(), error.getMessage(), null);
        }
      }
    }
  }
View Full Code Here


    EMFErrorHandler errorHandler = getErrorHandler();
    if (!errorHandler.isOKBySeverity(EMFErrorSeverity.ERROR)) {
      Collection errors = errorHandler.getErrors();
      Iterator it = errors.iterator();
      while (it.hasNext()) {
        EMFAbstractError error = (EMFAbstractError) it.next();
        if (error.getSeverity().equals(EMFErrorSeverity.ERROR)) {
          throw new SpagoBIEngineServiceException(getActionName(), error.getMessage(), null);
        }
      }
    }
  }
View Full Code Here

      Collection<EMFAbstractError> errors) throws JSONException {
    JSONObject content = new JSONObject();
    JSONArray array = new JSONArray();
    Iterator<EMFAbstractError> it = errors.iterator();
    while (it.hasNext()) {
      EMFAbstractError error = it.next();
      JSONObject jsonError = createResponseContent(error);
      array.put(jsonError);
    }
    content.put("errors", array);
    return content;
View Full Code Here

      EMFErrorHandler errorHandler = getErrorHandler();
      if (!errorHandler.isOKBySeverity(EMFErrorSeverity.ERROR)) {
        Collection errors = errorHandler.getErrors();
        Iterator it = errors.iterator();
        while (it.hasNext()) {
          EMFAbstractError error = (EMFAbstractError) it.next();
          if (error.getSeverity().equals(EMFErrorSeverity.ERROR)) {
            throw new SpagoBIEngineServiceException(getActionName(), error.getMessage(), null);
          }
        }
      }
     
       
View Full Code Here

    try {
      Collection<EMFAbstractError> errors = getErrorHandler().getErrors();
      Iterator it = errors.iterator();
      // if there is a CannotWriteErrorsToClient exception, CANNOT SEND ERRORS TO CLIENT
      while (it.hasNext()) {
        EMFAbstractError error = (EMFAbstractError) it.next();
        if (error instanceof EMFInternalError) {
          EMFInternalError internalError = (EMFInternalError) error;
          Exception e = internalError.getNativeException();
          if(e instanceof CannotWriteErrorsToClientException) {
            logger.error(e);
View Full Code Here

      if (_errorHandler != null) {
        Collection errors = _errorHandler.getErrors();
        if (errors != null && errors.size() > 0) {
          errorsHtmlString.append("  <div class='filter-list-errors'>\n");
          Iterator iterator = errors.iterator();
          EMFAbstractError error = null;
          String description = "";
          while (iterator.hasNext()) {
            error = (EMFAbstractError) iterator.next();
            if (error instanceof EMFValidationError) {
              description = error.getDescription();
              errorsHtmlString.append("    " + description + "<br/>\n");
              thereAreValidationErrors = true;
            }
          }
          errorsHtmlString.append("  </div>\n");
View Full Code Here

        output.append("    <div class='portlet-section-header'>\n");
        output.append("      ERRORS:\n");
        output.append("    </div>\n");
        output.append("    <div class='portlet-msg-error'>\n");
        output.append("      <ul class='ul_detail_error'>\n");
        EMFAbstractError error = null;
        String description = "";
        Iterator iter = errors.iterator();
        while(iter.hasNext()) {
          error = (EMFAbstractError)iter.next();
           description = error.getDescription();
           description = StringEscapeUtils.escapeJavaScript(StringEscapeUtils.escapeHtml(description));
           output.append("      <li>"+description+"</li>\n");
        }
        output.append("      </ul>\n");
        output.append("    </div>\n");
View Full Code Here

TOP

Related Classes of it.eng.spago.error.EMFAbstractError

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.