Examples of addError()


Examples of mod.AccountDB.GUI.Templates.AccountTemplateHandler.addError()

        // Add errors.
        if(! errors.isEmpty()) {
            Enumeration enu = errors.elements();
            while(enu.hasMoreElements()) {
                String[] tmp = (String[]) enu.nextElement();
                tAccountTH.addError(tmp[0], tmp[1]);
            }
        }

        // Add information.
View Full Code Here

Examples of net.cloudcodex.server.Context.addError()

   
    final Context context = createContext();
    final Data.User user = context.getUser();

    if(user == null || user.getNickname() == null) {
      context.addError(Errors.NOT_REGISTERED);
      return createResult(context, null);
    }
   
    // Build the Home DTO
    final HomeDTO home = new HomeDTO();
View Full Code Here

Examples of net.sourceforge.pebble.web.validation.ValidationContext.addError()

        blog.info("Blog entry <a href=\"" + blogEntry.getLocalPermalink() + "\">" + blogEntry.getTitle() + "</a> saved.");
        getModel().put(Constants.BLOG_ENTRY_KEY, blogEntry);
        return new RedirectView(blogEntry.getLocalPermalink());
      } catch (BlogServiceException be) {
        log.error(be.getMessage(), be);
        context.addError(be.getMessage());
        be.printStackTrace();
        return new BlogEntryFormView();
      }
    }
  }
View Full Code Here

Examples of no.ugland.utransprod.gui.AttributeDataType.addError()

        PropertyValidationSupport support = new PropertyValidationSupport(
                attributes, "Attributt");
       
        for(OrderLineAttribute attribute:attributes){
            AttributeDataType dataType = attribute.getAttributeDataType()!=null?AttributeDataType.valueOf(attribute.getAttributeDataType()):AttributeDataType.TEKST;
            dataType.addError(attribute,support);
        }


        return support.getResult();
    }
View Full Code Here

Examples of nu.fw.jeti.jabber.elements.XMPPError.addError()

  }
 
  private void sendError()
  {
    XMPPError error = new XMPPError("cancel",404);
    error.addError(new XMPPErrorTag("item-not-found"));
    backend.send(new InfoQuery(iq.getFrom(),iq.getID(),error));
  }
   
 
}
View Full Code Here

Examples of org.activiti.bpmn.model.BpmnModel.addError()

          messageParser.parse(xtr, model);
         
        } else if (ELEMENT_ERROR.equals(xtr.getLocalName())) {
         
          if (StringUtils.isNotEmpty(xtr.getAttributeValue(null, ATTRIBUTE_ID))) {
            model.addError(xtr.getAttributeValue(null, ATTRIBUTE_ID),
                xtr.getAttributeValue(null, ATTRIBUTE_ERROR_CODE));
          }
         
        } else if (ELEMENT_IMPORT.equals(xtr.getLocalName())) {
          importParser.parse(xtr, model);
View Full Code Here

Examples of org.apache.hadoop.yarn.api.records.timeline.TimelinePutResponse.addError()

            || existingEntity.getEvents().isEmpty()) {
          TimelinePutError error = new TimelinePutError();
          error.setEntityId(entityId.getId());
          error.setEntityType(entityId.getType());
          error.setErrorCode(TimelinePutError.NO_START_TIME);
          response.addError(error);
          entities.remove(entityId);
          entityInsertTimes.remove(entityId);
          continue;
        } else {
          Long min = Long.MAX_VALUE;
View Full Code Here

Examples of org.apache.joran.ExecutionContext.addError()

      doConfigure(in, repository);
      in.close();
    } catch (IOException ioe) {
      errMsg = "Could not open [" + url + "].";
      getLogger(repository).error(errMsg, ioe);
      ec.addError(new ErrorItem(errMsg, ioe));
    }
  }

  public List getErrorList() {
    return getExecutionContext().getErrorList();
View Full Code Here

Examples of org.apache.log4j.joran.spi.ExecutionContext.addError()

        spf.setNamespaceAware(true);
        saxParser = spf.newSAXParser();
    } catch (Exception pce) {
      final String errMsg = "Parser configuration error occured";
      getLogger(repository).error(errMsg, pce);
      ec.addError(new ErrorItem(errMsg, pce));
      return;
    }
   
    JoranDocument document = new JoranDocument(errorList, repository);
   
View Full Code Here

Examples of org.apache.maven.continuum.project.builder.ContinuumProjectBuildingResult.addError()

                }
                else
                {
                    result = new ContinuumProjectBuildingResult();
                    getLogger().info( "Malformed URL (MungedHttpsURL is not valid): " + hidePasswordInUrl( curl ) );
                    result.addError( ContinuumProjectBuildingResult.ERROR_MALFORMED_URL );
                }
            }

            if ( result.getProjects() != null )
            {
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.