Package org.apache.airavata.core.gfac.exception

Examples of org.apache.airavata.core.gfac.exception.ServiceException


                this.scheduler = (Scheduler) spiClass.newInstance();

                log.debug("Scheduler:" + className + " is loaded");

            } catch (ClassNotFoundException ex) {
                throw new ServiceException("Scheduler " + className + " not found", ex);
            } catch (Exception ex) {
                throw new ServiceException("Scheduler " + className + " could not be instantiated: " + ex, ex);
            }
        }
        return this.scheduler;
    }
View Full Code Here


     */
    private String loadFromProperty(String propertyName, boolean required) throws ServiceException {
        String propValue = this.config.getString(propertyName);
        if (propValue == null) {
            if (required)
                throw new ServiceException("Property \"" + propertyName + "\" is not found");
            return null;
        }
        return propValue;
    }
View Full Code Here

                chain[i] = (T) spiClass.newInstance();

                log.debug(type.getName() + " : " + className + " is loaded");

            } catch (ClassNotFoundException ex) {
                throw new ServiceException("Cannot find the class: " + className, ex);
            } catch (IllegalAccessException ex) {
                throw new ServiceException("Cannot access the class: " + className, ex);
            } catch (InstantiationException ex) {
                throw new ServiceException("Cannot init the class: " + className, ex);
            }
        }
        return chain;
    }
View Full Code Here

                this.scheduler = (Scheduler) spiClass.newInstance();

                log.info("Scheduler:" + className + " is loaded");

            } catch (ClassNotFoundException ex) {
                throw new ServiceException("Scheduler " + className + " not found", ex);
            } catch (Exception ex) {
                throw new ServiceException("Scheduler " + className + " could not be instantiated: " + ex, ex);
            }
        }
        return this.scheduler;
    }
View Full Code Here

     */
    private String loadFromProperty(String propertyName, boolean required) throws ServiceException {
        String propValue = this.config.getString(propertyName);
        if (propValue == null) {
            if (required)
                throw new ServiceException("Property \"" + propertyName + "\" is not found");
            return null;
        }
        return propValue;
    }
View Full Code Here

                chain[i] = (T) spiClass.newInstance();

                log.info(type.getName() + " : " + className + " is loaded");

            } catch (ClassNotFoundException ex) {
                throw new ServiceException("Cannot find the class: " + className, ex);
            } catch (IllegalAccessException ex) {
                throw new ServiceException("Cannot access the class: " + className, ex);
            } catch (InstantiationException ex) {
                throw new ServiceException("Cannot init the class: " + className, ex);
            }
        }
        return chain;
    }
View Full Code Here

                this.scheduler = (Scheduler) spiClass.newInstance();

                log.info("Scheduler:" + className + " is loaded");

            } catch (ClassNotFoundException ex) {
                throw new ServiceException("Scheduler " + className + " not found", ex);
            } catch (Exception ex) {
                throw new ServiceException("Scheduler " + className + " could not be instantiated: " + ex, ex);
            }
        }
        return this.scheduler;
    }
View Full Code Here

     */
    private String loadFromProperty(String propertyName, boolean required) throws ServiceException {
        String propValue = this.config.getString(propertyName);
        if (propValue == null) {
            if (required)
                throw new ServiceException("Property \"" + propertyName + "\" is not found");
            return null;
        }
        return propValue;
    }
View Full Code Here

                chain[i] = (T) spiClass.newInstance();

                log.info(type.getName() + " : " + className + " is loaded");

            } catch (ClassNotFoundException ex) {
                throw new ServiceException("Cannot find the class: " + className, ex);
            } catch (IllegalAccessException ex) {
                throw new ServiceException("Cannot access the class: " + className, ex);
            } catch (InstantiationException ex) {
                throw new ServiceException("Cannot init the class: " + className, ex);
            }
        }
        return chain;
    }
View Full Code Here

                this.scheduler = (Scheduler) spiClass.newInstance();

                log.info("Scheduler:" + className + " is loaded");

            } catch (ClassNotFoundException ex) {
                throw new ServiceException("Scheduler " + className + " not found", ex);
            } catch (Exception ex) {
                throw new ServiceException("Scheduler " + className + " could not be instantiated: " + ex, ex);
            }
        }
        return this.scheduler;
    }
View Full Code Here

TOP

Related Classes of org.apache.airavata.core.gfac.exception.ServiceException

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.