Examples of addError()


Examples of com.linkedin.databus.monitoring.mbean.EventSourceStatistics.addError()

          _rc.incrementEventCount();
          dbUpdatesEventsSize += serializedValue.length;
        }
        catch (IOException io)
        {
          perSourceStats.addError();
          globalStats.addEmptyEventCycle();
          _log.error("Cannot create byte stream payload: " + dbUpdates.get(i).getSourceId());
        }
      }
      long endDbUpdatesMs = System.currentTimeMillis();
View Full Code Here

Examples of com.opengamma.bbg.referencedata.ReferenceData.addError()

  @Override
  protected ReferenceDataProviderGetResult doBulkGet(ReferenceDataProviderGetRequest request) {
    ReferenceDataProviderGetResult result = new ReferenceDataProviderGetResult();
    for (String identifier : request.getIdentifiers()) {
      ReferenceData rd = new ReferenceData(identifier);
      rd.addError(new ReferenceDataError(null, -1, null, null, "None found"));
      result.addReferenceData(rd);
    }
    return result;
  }
View Full Code Here

Examples of com.puppycrawl.tools.checkstyle.api.AuditListener.addError()

            final AuditEvent evt = new AuditEvent(this, stripped, aErrors[i]);
            if (mFilters.accept(evt)) {
                final Iterator it = mListeners.iterator();
                while (it.hasNext()) {
                    final AuditListener listener = (AuditListener) it.next();
                    listener.addError(evt);
                }
            }
        }
    }
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Node.addError()

                if (e != null) {
                    ProducedType ot = unit.getType(unit.getObtainableDeclaration());
                    ProducedType dt = unit.getType(unit.getDestroyableDeclaration());
                    if (isInstantiationExpression(e)) {
                        if (!t.isSubtypeOf(dt) && !t.isSubtypeOf(ot)) {
                            typedNode.addError("resource must be either obtainable or destroyable: '" +
                                    t.getProducedTypeName(unit) + "' is neither 'Obtainable' nor 'Destroyable'");
                        }
                    }
                    else {
                        checkAssignable(t, ot, typedNode, "resource must be obtainable");
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.ImportPath.addError()

                that.addError("missing module name");
            }
            else {
                String initialName = name.get(0);
                if (initialName.equals(Module.DEFAULT_MODULE_NAME)) {
                    importPath.addError("reserved module name: 'default'");
                }
                else if (name.size()==1 && initialName.equals("ceylon")) {
                    importPath.addError("reserved module name: 'ceylon'");
                }
                else {
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.Term.addError()

                }*/
                Tree.Primary primary = ie.getPrimary();
                if (!(primary instanceof Tree.BaseTypeExpression)
                        && (!(primary instanceof Tree.BaseMemberExpression)
                                || !((Tree.BaseMemberExpression)primary).getDeclaration().isAnnotation())) {
                    term.addError("annotation constructor must return a newly-instantiated annotation");
                }
                checkAnnotationArguments(a, ie);
            }
            else {
                term.addError("annotation constructor must return a newly-instantiated annotation");
View Full Code Here

Examples of com.redhat.ceylon.compiler.typechecker.tree.Tree.TypeVariance.addError()

                                    else if (variance.getText().equals("in")) {
                                        pt.setVariance(p, IN);
                                    }
                                }
                                else {
                                    variance.addError("type parameter is not declared invariant: '" +
                                            p.getName() + "' of '" + type.getName(unit) + "'");
                                }
                            }
                        }
                    }
View Full Code Here

Examples of com.senseidb.search.req.SenseiResult.addError()

          doc.removeFields(SenseiSchema.SRC_DATA_COMPRESSED_FIELD_NAME);
          doc.removeFields(SenseiSchema.SRC_DATA_FIELD_NAME);
        }
        catch(Exception e)
        {
          res.addError(new SenseiError(e.getMessage(),ErrorType.BrokerGatherError));
          logger.error(e.getMessage(),e);
        }
      }
    }
View Full Code Here

Examples of com.swinarta.sunflower.server.model.SgwtRestErrorResponse.addError()

    }catch (DataIntegrityViolationException dive){
      SgwtRestErrorResponse resp = new SgwtRestErrorResponse(-4);
     
      String contraintMsg = dive.getCause().getCause().getMessage();
      if(StringUtils.indexOf(contraintMsg, "key 2") > 0){
        resp.addError("supplierCode", "Supplier Code Found");
      }       
      return resp;       

    }catch (Exception e) {
      e.printStackTrace();
View Full Code Here

Examples of com.tensegrity.palo.gwt.core.client.models.cubeviews.XDirectLinkData.addError()

    }
    if (user == null) {
      data.setAuthenticated(false);
      try {
        UserSession userSession = getUserSession(sessionId);     
        data.addError(userSession.translate("directLinkAuthenticationFailed"));
      } catch (SessionExpiredException e) {
        data.addError("You specified an invalid username/password combination. The user in the direct link could not be authenticated.");
      }
      return data;
    }
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.