Examples of IntegrationException


Examples of org.tuba.exceptions.IntegrationException

          .getArtefactOperation(operation.getId());
      if (operationMetaData == null) {
        // TODO externalize
        String message = "don't know operation: " + operation.getId(); //$NON-NLS-1$
        showError(message);
        throw new IntegrationException();
      }
      if (!beginType.equals(operationMetaData.getSourceType())) {
        // TODO externalize
        String message = "operation chain contains errors"; //$NON-NLS-1$
        showError(message);
        throw new IntegrationException();
      }
      beginType = operationMetaData.getTargetType();
    }
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONArray r = JSONArray.fromObject(response);
      if (!r.isEmpty()) {
        if (r.size() == 1 && r.getJSONObject(0).has("error")) {
          String error = r.getJSONObject(0).getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }

        return JSONArray.fromObject(response);
      }
    }
    throw new IntegrationException("No such task.");
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONArray r = JSONArray.fromObject(response);
      if (!r.isEmpty()) {
        if (r.size() == 1 && r.getJSONObject(0).has("error")) {
          String error = r.getJSONObject(0).getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }

        return JSONArray.fromObject(response);
      }
    }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONArray r = JSONArray.fromObject(response);
      if (!r.isEmpty()) {
        if (r.size() == 1 && r.getJSONObject(0).has("error")) {
          String error = r.getJSONObject(0).getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }
        else {
          JSONArray n = new JSONArray();
          for (JSONObject task : (Iterable<JSONObject>)r) {
            if (!task.getString("statusMessage").contains("Failed")) {
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONArray r = JSONArray.fromObject(response);
      if (!r.isEmpty()) {
        if (r.size() == 1 && r.getJSONObject(0).has("error")) {
          String error = r.getJSONObject(0).getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }
        else {
          JSONArray n = new JSONArray();
          for (JSONObject task : (Iterable<JSONObject>)r) {
            if (task.getString("statusMessage").contains("Failed")) {
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONArray r = JSONArray.fromObject(response);
      if (!r.isEmpty()) {
        if (r.size() == 1 && r.getJSONObject(0).has("error")) {
          String error = r.getJSONObject(0).getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }

        return JSONArray.fromObject(response);
      }
    }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONArray r = JSONArray.fromObject(response);
      if (!r.isEmpty()) {
        if (r.size() == 1 && r.getJSONObject(0).has("error")) {
          String error = r.getJSONObject(0).getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }

        return JSONArray.fromObject(response);
      }
    }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONObject r = JSONObject.fromObject(response);
      if (!r.isEmpty()) {
        if (r.has("error")) {
          String error = r.getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }

        return r;
      }
    }
    throw new IntegrationException("No such pipeline.");
  }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

      JSONArray r = JSONArray.fromObject(response);
      if (!r.isEmpty()) {
        if (r.size() == 1 && r.getJSONObject(0).has("error")) {
          String error = r.getJSONObject(0).getString("error");
          log.error(error);
          throw new IntegrationException("Analysis query returned an error: " + error);
        }

        return JSONArray.fromObject(response);
      }
    }
View Full Code Here

Examples of uk.ac.bbsrc.tgac.miso.integration.util.IntegrationException

    if (!"".equals(response)) {
      JSONObject r = JSONObject.fromObject(response);
      if (r.has("error")) {
        String error = r.getString("error");
        log.error(error);
        throw new IntegrationException("Analysis query returned an error: " + error);
      }
      return r;
    }
    throw new IntegrationException("Cannot submit task.");
  }
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.