Package org.apache.airavata.xbaya

Examples of org.apache.airavata.xbaya.XBayaRuntimeException


          // rest of the loading should work.

          XBayaSecurity.init();

        } catch (URISyntaxException e) {
          throw new XBayaRuntimeException(e);
        }

        /*
         * Resource Mapping Header
         */
 
View Full Code Here


      // ((SubWorkflowNode) middleNode).getWorkflow();
      // this.configuration;
      // TODO : Need to create a invoker!
      // new WorkflowInterpreter()
    } else {
      throw new XBayaRuntimeException(
          "Only Web services and subworkflows are supported for For-Each : Found : "
              + middleNode);
    }
    return invoker;
  }
View Full Code Here

            this.dialog = new JDialog((Frame) this.owner);
        } else if (this.owner instanceof Dialog) {
            this.dialog = new JDialog((Dialog) this.owner);
        } else {
            // This should not happen.
            throw new XBayaRuntimeException("The owner component was neither Frame or Dialog.");
        }
        this.dialog.setTitle(this.title);
        this.dialog.setModal(true);
        this.dialog.setResizable(true);
View Full Code Here

        } else if (edges.size() == 1) {
            // This happens when the second edges was wrongly added and removed.
        } else {
            // Should not happen
            throw new XBayaRuntimeException("edges.size(): " + edges.size());
        }
    }
View Full Code Here

    public URI getUniqueWorkflowName() {

        try {
            return new URI(XBayaConstants.LEAD_NS + "/" + this.getName());
        } catch (URISyntaxException e) {
            throw new XBayaRuntimeException(e);
        }
    }
View Full Code Here

    public URI getNameSpace() {
        try {
            return new URI(XBayaConstants.LEAD_NS);
        } catch (URISyntaxException e) {
            throw new XBayaRuntimeException(e);
        }
    }
View Full Code Here

            XmlElement newXML = XMLUtil.deepClone(originalXML);
            Workflow newWorkflow = new Workflow(newXML);
            return newWorkflow;
        } catch (GraphException e) {
            // This should not happen.
            throw new XBayaRuntimeException(e);
        } catch (XBayaException e) {
            // This should not happen.
            throw new XBayaRuntimeException(e);
        } catch (UtilsException e) {
            // This should not happen.
            throw new XBayaRuntimeException(e);
        }
    }
View Full Code Here

     *
     * @param index
     */
    public void up(int index) {
        if (index < 1 || index >= this.parameterNodes.size()) {
            throw new XBayaRuntimeException("Illegal index: " + index);
        }
        swap(index - 1, index);
    }
View Full Code Here

     *
     * @param index
     */
    public void down(int index) {
        if (index < 0 || index >= this.parameterNodes.size() - 1) {
            throw new XBayaRuntimeException("Illegal index: " + index);
        }
        swap(index, index + 1);
    }
View Full Code Here

        for (DataPort port : this.outputPorts) {
            if (port.getID().equals(fromPortID)) {
                return port;
            }
        }
        throw new XBayaRuntimeException("Port with id not found :" + fromPortID);
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.xbaya.XBayaRuntimeException

Copyright © 2018 www.massapicom. 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.