Package org.impalaframework.exception

Examples of org.impalaframework.exception.InvalidStateException


      if (logger.isDebugEnabled()) {
        logger.debug("Module '" + moduleName + "' not found.");
        dump();
      }
     
      throw new InvalidStateException("No module '"
          + moduleName + "' is registered with current instance of dependency manager.");
    }
    return parentVertex;
  }
View Full Code Here


    }
   
    if (!copy.isEmpty()) {
      //should not be possible, as all of the modules have already been converted into vertexes. Hence
      //would be the sign of an non-obvious programming error
      throw new InvalidStateException("Sortable list contains modules not known by the current instance of dependency registry: "
          + GraphHelper.getModuleNamesFromCollection(copy));
    }
   
    return ordered;
  }
View Full Code Here

    for (String dependent : dependentModuleNames) {
     
      final Vertex dependentVertex = vertexMap.get(dependent);
     
      if (dependentVertex == null) {
        throw new InvalidStateException("Unable to dependency named named '" + dependent
            + "' for module definition '" + moduleDefinition.getName() + "'");
       
      } else {
        //register the vertex dependency
        populateVertexDependency(vertex, dependentVertex);
View Full Code Here

    try {
      Integer intValue = Integer.parseInt(toString);
      return intValue;
    }
    catch (NumberFormatException e) {
      throw new InvalidStateException("Attribute with name '" + attributeName + "', and value '"
          + object + "' is not an integer");
    }
  }
View Full Code Here

   
    try {
      return Double.parseDouble(toString);
    }
    catch (NumberFormatException e) {
      throw new InvalidStateException("Attribute with name '" + attributeName + "', and value '"
          + object + "' is not a double");
    }
  }
View Full Code Here

    try {
      Map<String, Object> toReturn = (Map<String, Object>) object;
      return toReturn;
    }
    catch (ClassCastException e) {
      throw new InvalidStateException("Attribute with name '" + attributeName + "', and value '"
          + object + "' is not a valid map");
    }
  }
View Full Code Here

       //TODO introduce constants for bean names
    ModuleManagementFacade facade = ObjectUtils.cast(applicationContext.getBean("moduleManagementFacade"),
        ModuleManagementFacade.class);
   
    if (facade == null) {
      throw new InvalidStateException("Application context '" + applicationContext.getDisplayName()
          + "' does not contain bean named 'moduleManagementFacade'");
    }
   
    setNewOperationsFacade(facade);
    bundleContext.registerService(OperationsFacade.class.getName(), operations, null);
View Full Code Here

            if (logger.isDebugEnabled()) {
                logger.debug("Module '" + moduleName + "' not found.");
                dump();
            }
           
            throw new InvalidStateException("No module '"
                    + moduleName + "' is registered with current instance of dependency manager.");
        }
        return parentVertex;
    }
View Full Code Here

        }
       
        if (!copy.isEmpty()) {
            //should not be possible, as all of the modules have already been converted into vertexes. Hence
            //would be the sign of an non-obvious programming error
            throw new InvalidStateException("Sortable list contains modules not known by the current instance of dependency registry: "
                    + GraphHelper.getModuleNamesFromCollection(copy));
        }
       
        return ordered;
    }
View Full Code Here

        for (String dependent : dependentModuleNames) {
           
            final Vertex dependentVertex = vertexMap.get(dependent);
           
            if (dependentVertex == null) {
                throw new InvalidStateException("Unable to dependency named named '" + dependent
                        + "' for module definition '" + moduleDefinition.getName() + "'");
               
            } else {
                //register the vertex dependency
                populateVertexDependency(vertex, dependentVertex);
View Full Code Here

TOP

Related Classes of org.impalaframework.exception.InvalidStateException

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.