Package org.apache.airavata.registry.api.exception

Examples of org.apache.airavata.registry.api.exception.RegException


            URL url = new URL(urlString);
            URLConnection conn = url.openConnection();
            conn.connect();
        } catch (MalformedURLException e) {
            // the URL is not in a valid form
            throw new RegException("Given Axis2 Service URL : " + urlString + " is Invalid",e);
        } catch (IOException e) {
            // the connection couldn't be established
            throw new RegException("Given Axis2 Service URL : " + urlString + " is Invalid",e);
        }
        return  urlString;
    }
View Full Code Here


            URL url = new URL(urlString);
            URLConnection conn = url.openConnection();
            conn.connect();
        } catch (MalformedURLException e) {
            // the URL is not in a valid form
            throw new RegException("Given URL: " + urlString + " is Invalid",e);
        } catch (IOException e) {
            // the connection couldn't be established
            throw new RegException("Given URL: " + urlString + " is Invalid",e);
        }
        return  urlString;
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.registry.api.exception.RegException

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.