Examples of Error


Examples of com.opera.core.systems.scope.protos.UmsProtos.Error

        Event event = Event.parseFrom(payload);
        logger.finest("RECV EVENT: " + event.toString());
        signalEvent(event);
        break;
      case 4: // error
        Error error = Error.parseFrom(payload);
        logger.finest("RECV ERROR: " + error.toString());

        String service = error.getService();
        int status = error.getStatus();

        // We get exceptions when, in the ECMAScript services, we use a runtime that doesn't exist.
        // We can ignore these exceptions and carry on.
        if (((service.equals("ecmascript-debugger") || service.equals("ecmascript"))
             && status == Status.INTERNAL_ERROR.getNumber()) ||
            (service.equals("ecmascript") && status == Status.BAD_REQUEST.getNumber()) ||
            (service.equals("desktop-utils") && error.getCommandID() == DesktopUtilsMessage
                .GET_STRING.getID())) {
          signalResponse(error.getTag(), null);
        } else {
          connectionHandler.onException(
              new CommunicationException(String.format("Error on command: %s", error)));
        }
View Full Code Here

Examples of com.puppetlabs.geppetto.junitresult.Error

      rootSuite.getTestsuites().add(loadExceptionSuite);
    }
    Testcase tc = JunitresultFactory.eINSTANCE.createTestcase();
    tc.setName("Error loading: " + f.getAbsolutePath());

    Error error = JunitresultFactory.eINSTANCE.createError();
    StringBuilder builder = new StringBuilder();
    builder.append("Can not load junit xml result from file: ").append(f.getAbsolutePath()).append("\n");
    builder.append("Caused by: ").append(e.toString());
    error.setValue(builder.toString());
    error.setMessage(e.getMessage());

    tc.getErrors().add(error);
    loadExceptionSuite.getTestcases().add(tc);
  }
View Full Code Here

Examples of com.sforce.soap.partner.Error

    private static void handleFailures(List<Error> failures, boolean optimisticFailure) {
        if (failures != null) {
            Iterator<Error> iter = failures.iterator();
            while (iter.hasNext()) {
                Error error = iter.next();
                if (error.getStatusCode() == StatusCode.ALL_OR_NONE_OPERATION_ROLLED_BACK && failures.size() > 1) {
                    iter.remove();
                }
            }
            if (optimisticFailure) {
                throw new NucleusOptimisticException(failures.get(0).getMessage(),
View Full Code Here

Examples of com.sos.scheduler.model.answers.ERROR

        objShowHistory.run();
        objAnswer = objShowHistory.getAnswer();
      }
     
      if(objAnswer != null) {
        ERROR objError = objAnswer.getERROR();
        if(objError != null) {
          throw new JSCommandErrorException(objError.getText());
        }
        List<HistoryEntry> objHistoryEntries = objAnswer.getHistory().getHistoryEntry();
        if(objHistoryEntries.size() == 0) {
          logger.error(String.format("no history entry found for %1$s", strJobName));
          throw new JobSchedulerException(String.format("no history entry found for %1$s", strJobName));
View Full Code Here

Examples of com.sparc.knappsack.models.api.v1.Error

    Error handleGenericException(Exception ex, HttpServletRequest request, HttpServletResponse response) {
        String errorId = LoggingUtil.generateErrorId();
        String errorMessage = generateLogErrorMessage(errorId) + " - Processing error";
        log.error(errorMessage, ex);

        Error error = new Error();
        error.setHttpStatusCode("500");
        error.setDeveloperMessage(messageSource.getMessage("api.genericException.developerMessage", null, request.getLocale()));
        error.setUserMessage(messageSource.getMessage("api.genericException.userMessage", null, request.getLocale()));
        error.setMoreInfo("support@knappsack.com");
        error.setErrorId(errorId);

        response.setStatus(500);

        return error;
    }
View Full Code Here

Examples of com.tll.client.validate.Error

        emsg = msg.getMsg();
      }
      else {
        emsg = msg.getRefToken() + ": " + msg.getMsg();
      }
      errorHandler.handleError(new Error(classifier, fw, emsg), ErrorDisplay.ALL_FLAGS);
    }
  }
View Full Code Here

Examples of jabber.client.Error

                LOG.warn("Iq Unknown " + debugString(iq) + " element namespace: " + element.getNamespaceURI() + " localName: " + element.getLocalName());
            } else {
                LOG.warn("Iq Unknown " + debugString(iq) + " any: " + any + " of type: " + any.getClass().getName());
            }
            Iq result = createResult(iq);
            jabber.client.Error error = new Error();
            error.setUnexpectedRequest("Don't understand: " + any.toString());
            result.setAny(error);
            transport.marshall(result);
        }
    }
View Full Code Here

Examples of java.lang.Error

        // the Wilcard specification states that wildcard classes
        // should have an empty default constructor. If they
        // don't have;it it is a RUNES IMPLEMENTATION ERROR
        catch (IllegalAccessException noConstructor) {

          throw new Error(noConstructor.toString() + "/" + adviceSignature[i]);
        }
        catch (InstantiationException wrongConstructor) {
          throw new Error(wrongConstructor.toString());
        }

        actualParams[i=  oscarWild;
      }
      else {
        actualParams[i] = crtLocParam;
      }
    }

    // 3. create an action with the event stuff
    try {
      advMethod.invoke(adviceThis, actualParams);
    }
    catch (IllegalArgumentException wrongArgs) {
      throw new Error("MethodCut.joinPointAction: " + wrongArgs + ". Actual arguments" +
          Arrays.asList(actualParams) + " Expected arguments: " + advMethod);
    }
    catch (IllegalAccessException wrongMethod) {
      throw new IllegalAccessException("Advice method (" + advMethod + ") not visible");
    }
    catch(NullPointerException noReceiver) {
      throw new Error("MethodCut.joinPointAction:" + noReceiver.toString());
    }
  }
View Full Code Here

Examples of jjil.core.Error

        // Where -1 indicates matrix inversion of the 2x2 matrix (denoted B) formed from
        // the transposed vectors s12T and s13T.
        // Matrix inversion of a 2x2 matrix is easy.
        double detB = s12.getX() * s13.getY() - s13.getX() * s12.getY();
        if (detB == 0.0d) {
            throw new Error(
                            Error.PACKAGE.ALGORITHM,
                            ErrorCodes.PARAMETER_OUT_OF_RANGE,
                            t1.toString(),
                            null,
                            null);
View Full Code Here

Examples of jjil.core.Error

     * @param image the input image (output replaces input).
     * @throws jjil.core.Error if the input is not a Gray8Image.
     */
    public void push(Image image) throws jjil.core.Error {
        if (!(image instanceof Gray8Image)) {
            throw new Error(
                    Error.PACKAGE.ALGORITHM,
                    ErrorCodes.IMAGE_NOT_GRAY8IMAGE,
                    image.toString(),
                    null,
                    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.