Examples of addError()


Examples of org.jboss.ballroom.client.widgets.forms.FormValidation.addError()

            FormValidation superValidation = super.validate();
                PoolConfig updatedEntity = this.getUpdatedEntity();
                int minPoolSize = updatedEntity.getMinPoolSize();
            int maxPoolSize = updatedEntity.getMaxPoolSize();
            if(minPoolSize > maxPoolSize){
              superValidation.addError("maxPoolSize");
              maxCon.setErroneous(true);
              maxCon.setErrMessage("Max Pool Size must be greater than Min Pool Size");
            }
            return superValidation;
          }
View Full Code Here

Examples of org.jboss.dashboard.ui.components.MessagesComponentHandler.addError()

                Locale locale = LocaleManager.currentLocale();
                Iterator it = messages.iterator();
                while (it.hasNext()) {
                    Message message = (Message) it.next();
                    switch (message.getMessageType()) {
                        case Message.ERROR: messagesHandler.addError(message.getMessage(locale)); break;
                        case Message.WARNING: messagesHandler.addWarning(message.getMessage(locale)); break;
                        case Message.INFO: messagesHandler.addMessage(message.getMessage(locale)); break;
                    }
                }
            } catch (Exception e) {
View Full Code Here

Examples of org.jboss.dashboard.ui.utils.forms.FormStatus.addError()

            } else {
                log.debug("Status is not valid. Number of files is not 1, it is " + request.getUploadedFilesCount());
                status.addWrongField("zipFile");
            }
        } catch (Exception e) {
            status.addError(e.getMessage());
        }
        if (status.isValidated()) {
            String previewPage = request.getParameter("previewPage");
            if (previewPage != null) {
                return new ShowScreenResponse(previewPage);
View Full Code Here

Examples of org.jibx.schema.validation.ValidationContext.addError()

            if (ns == null || ns.length() == 0) {
               
                // check if no-namespace attribute in allowed set
                if (attrs.indexOf(name) < 0) {
                    ValidationContext vctx = (ValidationContext)ictx.getUserContext();
                    vctx.addError("Undefined attribute " + name, ictx.getStackTop());
                }
               
            } else if (WSDL_NAMESPACE_URI.equals(ns)) {
               
                // no unknown attributes from definition namespace are defined
View Full Code Here

Examples of org.modeshape.common.collection.Problems.addError()

        for (IndexDefinition defn : indexDefinitions) {
            String name = defn.getName();
            String providerName = defn.getProviderName();

            if (name == null) {
                problems.addError(JcrI18n.indexMustHaveName, defn, repository.name());
                continue;
            }
            if (indexes.getIndexDefinitions().containsKey(name) && !allowUpdate) {
                // Throw this one immediately ...
                String msg = JcrI18n.indexAlreadyExists.text(defn.getName(), repository.name());
View Full Code Here

Examples of org.modeshape.common.collection.SimpleProblems.addError()

            warnUseOfDeprecatedFields(problems);
            Results results = SCHEMA_LIBRARY.validate(doc, JSON_SCHEMA_URI);
            for (Problem problem : results) {
                switch (problem.getType()) {
                    case ERROR:
                        problems.addError(JcrI18n.configurationError, problem.getPath(), problem.getReason());
                        break;
                    case WARNING:
                        problems.addWarning(JcrI18n.configurationWarning, problem.getPath(), problem.getReason());
                        break;
                }
View Full Code Here

Examples of org.opencms.report.I_CmsReport.addError()

        if (isInitialized) {
          handler.finish(context);
        }
      } catch (CmsException e) {
        if (report != null) {
          report.addError(e);
          report.println(e);
        }
        LOG.error("Error", e);
      }
    }
View Full Code Here

Examples of org.rhq.core.clientapi.server.discovery.InventoryReport.addError()

            } else {
                log.info("Not sending inventory report because no new descendent resources were discovered.");
            }
        } catch (Exception e) {
            log.warn("Exception caught while executing runtime discovery scan rooted at [" + target + "].", e);
            report.addError(new ExceptionPackage(Severity.Warning, e));
        }

        return report;
    }
View Full Code Here

Examples of org.sf.bee.commons.ResponseObject.addError()

        try {
            if (null == _error) {
                if (!_cpu.hasError()) {
                    result.setValue(_cpu.getReport());
                } else {
                    result.addError(_cpu.getError());
                }
            } else {
                result.addError(_error);
            }
        } catch (Exception ex) {
View Full Code Here

Examples of org.sonatype.plexus.rest.resource.error.ErrorResponse.addError()

    ErrorMessage err = new ErrorMessage();
    err.setId("*");
    err.setMsg("No enum const " + enumClass + "." + name);

    ErrorResponse ner = new ErrorResponse();
    ner.addError(err);

    return new PlexusResourceException(Status.CLIENT_ERROR_BAD_REQUEST, "Configuration error.", ner);
  }

}
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.