Examples of DomainException


Examples of ai.domain.DomainException

    if (!isInterestingType(name))
      return null;
    Pair<Bool, DI> initializer = computeInitialValue(initializerOrNull, input);
    Variable variable = EvaluationUtils.tryGetVariable(name);
    if (variable == null)
      throw new DomainException("Error: '%s'", variable);
    if (asAssignment && initializerOrNull != null)
      return expressionSemantics.processBooleanAssignment(initializer.right, name, initializer.left);
    else
      return processNewVariable(initializer.right, variable, initializer.left, asAssignment);
  }
View Full Code Here

Examples of br.net.woodstock.rockframework.domain.DomainException

  public <T> T getObject(final Class<T> clazz) {
    Assert.notNull(clazz, "clazz");

    if (this.context == null) {
      throw new DomainException("Context not initialized");
    }

    Map<String, T> map = this.context.getBeansOfType(clazz);
    if (map.size() == 0) {
      throw new DomainException("Object not found for type " + clazz.getCanonicalName());
    }
    if (map.size() > 1) {
      throw new DomainException("To many objects found for type " + clazz.getCanonicalName());
    }

    return map.values().iterator().next();
  }
View Full Code Here

Examples of com.sun.enterprise.admin.servermgmt.DomainException

    {
        final String domainRoot =
            (String)domainConfig.get(DomainConfig.K_DOMAIN_ROOT);
        if ((domainRoot == null) || (domainRoot.length() == 0))
        {
            throw new DomainException("Invalid domain root");
        }
        /* Do we need this?
        if (!(new File(domainRoot).exists()))
        {
            throw new DomainException("Domain root doesnot exist");
View Full Code Here

Examples of org.apache.tuscany.sca.domain.DomainException

            if (domainModel.getDomainURL() == null) {
              logger.log(Level.INFO, "Domain will be started stand-alone as domain URL is not provided");
            }
           
        } catch(Exception ex) {
            throw new DomainException(ex);
        }           
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.DomainException

                                              domainCompositeName +
                                              " not found on the classpath");
            }      
           
        } catch(Exception ex) {
            throw new DomainException(ex);
        }
    }   
View Full Code Here

Examples of org.apache.tuscany.sca.domain.DomainException

            } catch(Exception ex) {
                logger.log(Level.SEVERE, 
                           "Can't connect to domain manager at: " +
                           domainModel.getDomainURL());
                throw new DomainException(ex);
           
        }     
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.DomainException

                domainEventService.unregisterNode(node.getURI());
            } catch(Exception ex) {
                logger.log(Level.SEVERE, 
                           "Can't connect to domain manager at: " +
                           domainModel.getDomainURL());
                throw new DomainException(ex);
            }
        } 
       
        // remove this object from the node manager service
        nodeManagerInitService.setNode(null);       
View Full Code Here

Examples of org.apache.tuscany.sca.domain.DomainException

                nodeManagerInitService = null;
            }
         
        } catch (Exception ex) {
            throw new DomainException(ex);
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.DomainException

    public void addContribution(String contributionURI, URL contributionURL) throws DomainException {
        if ((domainModel.getDomainURL() != null) && (domainAPIService != null)){
            domainAPIService.addContribution(contributionURI, contributionURL.toString());
        } else {
            throw new DomainException("Not connected to domain");
        }
    }
View Full Code Here

Examples of org.apache.tuscany.sca.domain.DomainException

   
    public void updateContribution(String contributionURI, URL contributionURL) throws DomainException {
        if ((domainModel.getDomainURL() != null) && (domainAPIService != null)){
            domainAPIService.updateContribution(contributionURI, contributionURL.toString());
        } else {
            throw new DomainException("Not connected to domain");
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.