Examples of ErrorInfo


Examples of backtype.storm.generated.ErrorInfo

        if (errors != null) {
          int size = errors.size();
          for (int i = 0; i < size; i++) {
            TaskError e = (TaskError) errors.get(i);
            newErrors.add(new ErrorInfo(e.getError(), e.getTimSecs()));
          }
        }
        BaseStatsData status = (BaseStatsData) heartbeat.getStats();
        TaskStats tkStatus = status.getTaskStats();
        int uptimeSecs = heartbeat.getUptimeSecs();
View Full Code Here

Examples of com.google.api.client.googleapis.json.GoogleJsonError.ErrorInfo

    @Override
    public void onFailure(GoogleJsonErrorContainer e, HttpHeaders responseHeaders) {
      failureCalls++;
      GoogleJsonError error = e.getError();
      ErrorInfo errorInfo = error.getErrors().get(0);
      assertEquals(ERROR_DOMAIN, errorInfo.getDomain());
      assertEquals(ERROR_REASON, errorInfo.getReason());
      assertEquals(ERROR_MSG, errorInfo.getMessage());
      assertEquals(ERROR_CODE, error.getCode());
      assertEquals(ERROR_MSG, error.getMessage());
    }
View Full Code Here

Examples of com.google.api.client.googleapis.json.GoogleJsonError.ErrorInfo

          error.setMessage(errorProto.getMessage());
        }

        List<ErrorInfo> errorInfos = new ArrayList<ErrorInfo>(errorProto.getErrorsCount());
        for (ErrorOutput.IndividualError individualError : errorProto.getErrorsList()) {
          ErrorInfo errorInfo = new ErrorInfo();
          if (individualError.hasDomain()) {
            errorInfo.setDomain(individualError.getDomain());
          }
          if (individualError.hasMessage()) {
            errorInfo.setMessage(individualError.getMessage());
          }
          if (individualError.hasReason()) {
            errorInfo.setReason(individualError.getReason());
          }
          errorInfos.add(errorInfo);
        }
        error.setErrors(errorInfos);
        errorContainer.setError(error);
View Full Code Here

Examples of com.sun.msv.verifier.ErrorInfo

       
        public void startElement(
            String ns, String local, String qname, Attributes atts )
            throws SAXException {
           
            ErrorInfo ei = null;
            boolean unknownError = false;
           
            try {
                super.startElement(ns,local,qname,atts);
                // there is no error.
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfo

   public boolean isError(int offset, int len)
   {
      //System.out.println("Error: offset = " + offset + " len = " + len);
      for (int i = 0; i < _currentErrorInfos.size(); i++)
      {
         ErrorInfo errInf = _currentErrorInfos.elementAt(i);

         if(offset <= errInf.beginPos && errInf.endPos <= offset + len)
         {
            return true;
         }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfo

      ////////////////////////////////////////////////////////////////////////////////


      for (int i = 0; i < _currentErrorInfos.size(); i++)
      {
         ErrorInfo errInf = _currentErrorInfos.elementAt(i);

//         byte[] bytes = _editorPane.getText().getBytes();
//         System.out.println("*********************************************** " + absolutePosition);
//         System.out.print(new String(bytes, 0, errInf.beginPos));
//         System.out.print(">" + new String(bytes, errInf.beginPos, errInf.endPos + 1  - errInf.beginPos) + "<");
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfo

            color(colBegin, colLen, false, null);
         }

         for (int i = 0; i < _oldErrorInfos.size(); i++)
         {
            ErrorInfo errorInfo = _oldErrorInfos.elementAt(i);
            int colBegin = Math.max(errorInfo.beginPos - heuristicDist, 0);
            int colLen = Math.min(errorInfo.endPos - errorInfo.beginPos + 2*heuristicDist, getDocument().getLength() - colBegin);
            color(colBegin, colLen, false, null);
         }
      }
View Full Code Here

Examples of net.sourceforge.squirrel_sql.client.session.parser.kernel.ErrorInfo

   {
      int pos = viewToModel(event.getPoint());

      for (int i = 0; i < _currentErrorInfos.size(); i++)
      {
         ErrorInfo errInfo = _currentErrorInfos.elementAt(i);

         if(errInfo.beginPos-1 <= pos && pos <= errInfo.endPos)
         {
            return errInfo.message;
         }
View Full Code Here

Examples of org.apache.empire.commons.ErrorInfo

     * @see org.apache.empire.struts2.action.ActionErrorProvider#getLastActionError(boolean)
     */
    public ErrorInfo getLastActionError(boolean clear)
    {
        ActionContext context = ActionContext.getContext();
        ErrorInfo error = (ErrorInfo)context.getSession().get(LAST_ACTION_ERROR_ATTRIBUTE);
        if (clear)
            context.getSession().remove(LAST_ACTION_ERROR_ATTRIBUTE);
        return error;
    }
View Full Code Here

Examples of org.apache.empire.commons.ErrorInfo

   
    @SuppressWarnings("null")
    private void renderAllErrors(HtmlWriter w, ActionErrorProvider provider)
    {
        // Get errors
        ErrorInfo lastActionError = provider.getLastActionError(true);
        Map<String, ErrorInfo> fieldErrors = provider.getItemErrors();
       
        boolean hasActionError = (lastActionError!=null && lastActionError.hasError());
        boolean hasFieldErrors = (fieldErrors!=null && fieldErrors.size()>0);

        // Check whether we have an error to render
        if (hasActionError==false && hasFieldErrors==false)
        {   // No Errors, nothing to render
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.