Examples of ConfigurationException


Examples of br.com.objectos.comuns.relational.search.ConfigurationException

  @Override
  public DeleteAlias delete(String... aliases) {
    JdbcDeleteAlias delete = new JdbcDeleteAlias(this, aliases);
    if (containsKey(DeleteAlias.class)) {
      throw new ConfigurationException("aliases were already defined.");
    }
    putElement(DeleteAlias.class, delete);
    return delete;
  }
View Full Code Here

Examples of br.gov.frameworkdemoiselle.configuration.ConfigurationException

    }
  }

  private void validate(Field field, String key, Object value, String resource) {
    if (field.isAnnotationPresent(NotNull.class) && value == null) {
      throw new ConfigurationException(getBundle().getString("configuration-attribute-is-mandatory", key,
          resource));
    }
  }
View Full Code Here

Examples of ca.uhn.fhir.context.ConfigurationException

    myVersionIdIndex = versionIdIndex;
    myParameterCount = getMethod().getParameterTypes().length;

    Class<?>[] parameterTypes = theMethod.getParameterTypes();
    if (!IdDt.class.equals(parameterTypes[myIdIndex])) {
      throw new ConfigurationException("ID parameter must be of type: " + IdDt.class.getCanonicalName() + " - Found: " + parameterTypes[myIdIndex]);
    }
    if (myVersionIdIndex != null && !IdDt.class.equals(parameterTypes[myVersionIdIndex])) {
      throw new ConfigurationException("Version ID parameter must be of type: " + IdDt.class.getCanonicalName() + " - Found: " + parameterTypes[myVersionIdIndex]);
    }

  }
View Full Code Here

Examples of cero.ConfigurationException

    @Override
    public void setString(String propertyName, String value)
        throws ConfigurationException {
      if (propertyName.equals("name")
          && (value.equals("") || value == null))
        throw new ConfigurationException(
            "Players' name can't be null or empty");
      playerName = value;
      super.setString(propertyName, value);
    }
View Full Code Here

Examples of certmngrscraper.sourceforge.net.ConfigurationException

        properties = new Properties();
        try {
            final File file = new File(System.getProperty(USER_HOME), PROPERTIES_FILE_NAME);
            properties.load(new FileInputStream(file));
        } catch (IOException e) {
            throw new ConfigurationException("Error loading mail.properties", e);
        }
        // validate properties
        mailUser = properties.getProperty(MAIL_USER);
        if (GenericValidator.isBlankOrNull(mailUser)) {
            throw new ConfigurationException("Property 'mail.user' cannot be blank or null");
        }
        mailPassword = properties.getProperty(MAIL_PASSWORD);
        if (GenericValidator.isBlankOrNull(mailPassword)) {
            throw new ConfigurationException("Property 'mail.password' cannot be blank or null");
        }
        try {
            recipient = new InternetAddress(properties.getProperty(RECIPIENT_PROPERTY));
        } catch (AddressException e) {
            throw new ConfigurationException("Property 'recipient' must be a valid email address", e);
        }
    }
View Full Code Here

Examples of cgl.shindig.config.ConfigurationException

        if (isLocal()) {
            return new LocalAuthContext(config, cbHandler, subject);
        } else if (isJAAS()) {
            return new JAASAuthContext(appName, cbHandler, subject);
        } else {
            throw new ConfigurationException("No Login-Configuration");
        }
    }
View Full Code Here

Examples of ch.entwine.weblounge.common.ConfigurationException

  public static ScriptImpl fromXml(Node config, XPath xpathProcessor)
      throws IllegalStateException {

    String href = XPathHelper.valueOf(config, "@src", xpathProcessor);
    if (href == null)
      throw new ConfigurationException("Source path of script definition is mandatory!");

    ScriptImpl script = new ScriptImpl(href);
    script.setType(XPathHelper.valueOf(config, "@type", xpathProcessor));
    script.setCharset(XPathHelper.valueOf(config, "@charset", xpathProcessor));
    script.setJQuery(XPathHelper.valueOf(config, "@jquery", xpathProcessor));
View Full Code Here

Examples of ch.fork.AdHocRailway.technical.configuration.ConfigurationException

        routePersistence.clear();
        turnoutPersistence.clear();
        locomotivePersistence.clear();
        parseDocument(filename);
        if (!supported) {
            throw new ConfigurationException(
                    Constants.ERR_VERSION_NOT_SUPPORTED);
        }
    }
View Full Code Here

Examples of civquest.io.ConfigurationException

  public String getHeightVegSectionName(Field.Height height, String vegetation)
    throws ConfigurationException {

    if (!(vegetationDefinitions.containsKey(vegetation))) {
      throw new ConfigurationException("No vegetation with name " + vegetation
                       + " defined!");
    }
   
    return height.name().toLowerCase() + SEPARATOR + vegetation;
  }
View Full Code Here

Examples of com._3pillarglobal.labs.meeting.exception.ConfigurationException

  @Override
  public void validate() throws ConfigurationException {
    LOG.info("Validating configuration properties for email");
    if (properties == null) {
      throw new ConfigurationException("Properties can not be null");
    }
    if (properties.get("mail.smtp.host") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.host is not given");
    }
    if (properties.get("mail.smtp.port") == null) {
      throw new ConfigurationException(
          "Property mail.smtp.port is not given");
    }
    if ("true".equals(properties.get("mail.smtp.auth"))) {
      if (properties.get("username") == null) {
        throw new ConfigurationException("Username is not given");
      }
      if (properties.get("password") == null) {
        throw new ConfigurationException("Password is not given");
      }
    }
  }
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.