Package org.apache.stratos.cloud.controller.exception

Examples of org.apache.stratos.cloud.controller.exception.InvalidIaasProviderException


      return iaas;
    } catch (Exception e) {
      String msg = "Unable to build the jclouds object for iaas "
          + "of type: " + iaasProvider.getType();
      log.error(msg, e);
      throw new InvalidIaasProviderException(msg, e);
    }
  }
View Full Code Here


      return iaas;
    } catch (Exception e) {
      String msg = "Unable to build the jclouds object for iaas "
          + "of type: " + iaasProvider.getType();
      log.error(msg, e);
      throw new InvalidIaasProviderException(msg, e);
    }
  }
View Full Code Here

     
      if(iaasProvider.getClassName() == null) {
        String msg = "You have not specified a class which represents the iaas of type: ["
            + iaasProvider.getType() + "].";
        log.error(msg);
        throw new InvalidIaasProviderException(msg);
      }
     
      Constructor<?> c = Class.forName(iaasProvider.getClassName())
          .getConstructor(IaasProvider.class);
      Iaas iaas = (Iaas) c.newInstance(iaasProvider);
      return iaas;
    } catch (Exception e) {
      String msg = "Class [" + iaasProvider.getClassName()
          + "] which represents the iaas of type: ["
          + iaasProvider.getType() + "] has failed to instantiate.";
      log.error(msg, e);
      throw new InvalidIaasProviderException(msg, e);
    }
  }
View Full Code Here

TOP

Related Classes of org.apache.stratos.cloud.controller.exception.InvalidIaasProviderException

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.