Package org.infoglue.cms.exception

Examples of org.infoglue.cms.exception.ConfigurationError


      SimpleStringManager manager = (SimpleStringManager) iterator.next();
      if(manager.containsKey(key)) {
        return manager.getString(key);
      }
    }
    throw new ConfigurationError(sm.getString("chain.getString.not_found_error", key));
  }
View Full Code Here


    try {
      final Properties properties = new Properties();
      properties.load(getResourceAsStream(name, ResourceHelper.class));
      return properties;
    } catch(Exception e) {
      throw new ConfigurationError(sm.getString("resource.loadProperties.error", name), e);
    }
  }
View Full Code Here

      while((count = reader.read(buf, 0, CHAR_BUFFER_SIZE)) > 0) {
        sb.append(buf, 0, count);
      }
      return sb.toString();
    } catch(Exception e) {
      throw new ConfigurationError(sm.getString("resource.readResource.error", name), e);
    }
  }
View Full Code Here

   */
  private void initializePackageNames(String commaSeparatedPackageNames)
  {
    if (commaSeparatedPackageNames == null)
    {
      throw new ConfigurationError("web.xml not properly configured, did not contain the " + PACKAGE_NAMES_INIT_PARAM + " init param for the VelocityServlet.");
    }

    final StringTokenizer st = new StringTokenizer(commaSeparatedPackageNames, ",");
    this.packageNames = new String[st.countTokens()];
    for (int i = 0; st.hasMoreTokens(); ++i)
View Full Code Here

 
  private void validateUnparsedURL()
  {
    if (this.unparsedURL == null || this.unparsedURL.trim().length() == 0)
    {
      throw new ConfigurationError("No url/empty url specified for ExtendedRedirect.action");
    }
  }
View Full Code Here

    if (value==null)
      value = getRequest().getParameter(fieldName);
   
    if (value == null)
    {
      throw new ConfigurationError("Unable to find the value for the parameter [" + fieldName + "].");
    }
   
   
    return value.toString();
  }
View Full Code Here

 
  private void validateUnparsedURL()
  {
    if (this.unparsedURL == null || this.unparsedURL.trim().length() == 0)
    {
      throw new ConfigurationError("No url/empty url specified for ExtendedRedirect.action");
    }
  }
View Full Code Here

    if (value==null)
      value = getRequest().getParameter(fieldName);
   
    if (value == null)
    {
      throw new ConfigurationError("Unable to find the value for the parameter [" + fieldName + "].");
    }
   
   
    return value.toString();
  }
View Full Code Here

            this.bundle = ResourceBundle.getBundle(bundleName, locale);
            //ResourceBundle.getBundle(baseName, control)
        }
        catch(MissingResourceException e)
        {
            throw new ConfigurationError("Unable to find resource bundle: " + e.getMessage(), e);
        }
        catch(NullPointerException e)
        {
            throw new Bug("Unable to create resource bundle.", e);
        }
View Full Code Here

            this.bundle = ResourceBundle.getBundle(bundleName, locale, loader);
            //ResourceBundle.getBundle(baseName, control)
        }
        catch(MissingResourceException e)
        {
            throw new ConfigurationError("Unable to find resource bundle: " + e.getMessage(), e);
        }
        catch(NullPointerException e)
        {
            throw new Bug("Unable to create resource bundle.", e);
        }
View Full Code Here

TOP

Related Classes of org.infoglue.cms.exception.ConfigurationError

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.