Examples of ConfigurationRuntimeException


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

        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

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

    @Test
    public void testLockHandlingWithExceptionWhenConstructingRootNode()
    {
        SynchronizerTestImpl sync = setUpSynchronizerTest();
        final RuntimeException testEx =
                new ConfigurationRuntimeException("Test exception");
        BaseHierarchicalConfiguration childEx =
                new BaseHierarchicalConfiguration()
                {
                    @Override
                    public NodeModel<ImmutableNode> getModel() {
View Full Code Here

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

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

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

        {
            return file.toURI().toURL();
        }
        catch (MalformedURLException mex)
        {
            throw new ConfigurationRuntimeException(mex);
        }
    }
View Full Code Here

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

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

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

            {
                return (Configuration) clone(config);
            }
            catch (CloneNotSupportedException cnex)
            {
                throw new ConfigurationRuntimeException(cnex);
            }
        }
    }
View Full Code Here

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

                        "No clone() method found for class"
                                + obj.getClass().getName());
            }
            catch (IllegalAccessException iaex)
            {
                throw new ConfigurationRuntimeException(iaex);
            }
            catch (InvocationTargetException itex)
            {
                throw new ConfigurationRuntimeException(itex);
            }
        }
        else
        {
            throw new CloneNotSupportedException(obj.getClass().getName()
View Full Code Here

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

        {
            return (Synchronizer) clone(sync);
        }
        catch (CloneNotSupportedException cnex)
        {
            throw new ConfigurationRuntimeException(
                    "Cannot clone Synchronizer " + sync);
        }
    }
View Full Code Here

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

                {
                    @Override
                    public void onEvent(ConfigurationErrorEvent event)
                    {
                        // Throw a runtime exception
                        throw new ConfigurationRuntimeException(event
                                .getCause());
                    }
                });
    }
View Full Code Here

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

        {
            return loadClass(clsName);
        }
        catch (ClassNotFoundException cnfex)
        {
            throw new ConfigurationRuntimeException("Cannot load class "
                    + clsName, cnfex);
        }
    }
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.