Package org.apache.commons.configuration.ex

Examples of org.apache.commons.configuration.ex.ConfigurationRuntimeException


        else
        {
            ImmutableNode target = selector.select(root, resolver, handler);
            if (target == null)
            {
                throw new ConfigurationRuntimeException(
                        "Selector does not select unique node: " + selector);
            }
            return new TrackedNodeData(target);
        }
    }
View Full Code Here


     * @return the exception with the error message
     */
    private static ConfigurationRuntimeException constructorMatchingException(
            Class<?> beanClass, BeanDeclaration data, String msg)
    {
        return new ConfigurationRuntimeException(String.format(FMT_CTOR_ERROR,
                msg, beanClass.getName(), getConstructorArgs(data).toString()));
    }
View Full Code Here

        beginWrite(true);
        try
        {
            if (name != null && namedConfigurations.containsKey(name))
            {
                throw new ConfigurationRuntimeException(
                        "A configuration with the name '"
                                + name
                                + "' already exists in this combined configuration!");
            }
View Full Code Here

            return copy;
        }
        catch (CloneNotSupportedException cex)
        {
            // should not happen
            throw new ConfigurationRuntimeException(cex);
        }
    }
View Full Code Here

                        inUnicode = false;
                        hadSlash = false;
                    }
                    catch (NumberFormatException nfe)
                    {
                        throw new ConfigurationRuntimeException("Unable to parse unicode value: " + unicode, nfe);
                    }
                }
                continue;
            }
View Full Code Here

            String key)
    {
        List<ImmutableNode> targetNodes = fetchFilteredNodeResults(key);
        if (targetNodes.size() != 1)
        {
            throw new ConfigurationRuntimeException(
                    "Passed in key must select exactly one node: " + key);
        }
        BaseHierarchicalConfiguration sub =
                new BaseHierarchicalConfiguration(new InMemoryNodeModel(
                        targetNodes.get(0)));
View Full Code Here

                    this.value = clazz;
                }
            }
            catch (Exception e)
            {
                throw new ConfigurationRuntimeException("Unable to create " + value, e);
            }

        }
View Full Code Here

            TreeData current = structure.get();
            List<ImmutableNode> nodes =
                    resolver.resolveNodeKey(current.getRootNode(), key, current);
            if (nodes.size() != 1)
            {
                throw new ConfigurationRuntimeException(
                        "Key does not select a single node: " + key);
            }

            ImmutableNode parent = nodes.get(0);
            TreeData newData =
View Full Code Here

TOP

Related Classes of org.apache.commons.configuration.ex.ConfigurationRuntimeException

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.