Package org.apache.airavata.common.exception

Examples of org.apache.airavata.common.exception.UtilsException


            logger.warn("Message: " + error.getMessage());
            logger.warn("Location of invalid XML: " + error.getCursorLocation().xmlText());
            stringBuilder.append("Message:" + error.getMessage());
            stringBuilder.append("Location of invalid XML: " + error.getCursorLocation().xmlText());
        }
        throw new UtilsException(stringBuilder.toString());
    }
View Full Code Here


        try {
            XmlElement wsdlElement = XMLUtil.stringToXmlElement(wsdlString);
            WsdlDefinitions definitions = new WsdlDefinitions(wsdlElement);
            return definitions;
        } catch (RuntimeException e) {
            throw new UtilsException(e);
        }
    }
View Full Code Here

     */
    public static WsdlPortType getFirstPortType(WsdlDefinitions definitions) throws UtilsException {
        for (WsdlPortType portType : definitions.portTypes()) {
            return portType;
        }
        throw new UtilsException("No portType is defined in WSDL");
    }
View Full Code Here

    public static WsdlPortTypeOperation getFirstOperation(WsdlDefinitions definitions) throws UtilsException {
        for (WsdlPortTypeOperation operation : getFirstPortType(definitions).operations()) {
            return operation;
        }
        throw new UtilsException("No portType is defined in WSDL");
    }
View Full Code Here

        for (WsdlPortType portType : definitions.portTypes()) {
            String portTypeName = portType.getName();
            QName portTypeQName = new QName(targetNamespace, portTypeName);
            return portTypeQName;
        }
        throw new UtilsException("No portType is defined.");
    }
View Full Code Here

                continue;
            }

            return operationName;
        }
        throw new UtilsException("No operation is defined");
    }
View Full Code Here

                        if (isTypeDefinedInSchema(paramType, importedSchema)) {
                            // still return the parent schema
                            return schema;
                        }
                    } catch (MalformedURLException e) {
                        throw new UtilsException(e);
                    } catch (XmlBuilderException e) {
                        throw new UtilsException(e);
                    } catch (IOException e) {
                        throw new UtilsException(e);
                    }
                }
            }
        }
View Full Code Here

                        if (returnType != null) {
                            return importEle;
                        }

                    } catch (MalformedURLException e) {
                        throw new UtilsException(e);
                    } catch (XmlBuilderException e) {
                        throw new UtilsException(e);
                    } catch (IOException e) {
                        throw new UtilsException(e);
                    }
                }
            }
        }
        return null;
View Full Code Here

                        if (returnType != null) {
                            return returnType;
                        }

                    } catch (MalformedURLException e) {
                        throw new UtilsException(e);
                    } catch (XmlBuilderException e) {
                        throw new UtilsException(e);
                    } catch (IOException e) {
                        throw new UtilsException(e);
                    }
                }
            }
        }
        return null;
View Full Code Here

            XmlElement clonedElement = element.clone();
            clonedElement.setParent(null);
            return clonedElement;
        } catch (CloneNotSupportedException e) {
            // This should not happen because we don't put any special Objects.
            throw new UtilsException(e);
        }
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.common.exception.UtilsException

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.