Examples of ConfigurationRuntimeException


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

            return (EventSource) obj;
        }

        if (!mockIfUnsupported)
        {
            throw new ConfigurationRuntimeException(
                    "Cannot cast to EventSource: " + obj);
        }
        return DUMMY_EVENT_SOURCE;
    }
View Full Code Here

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

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

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

            new FileHandler(c).load(TEST_FILE);
            return c;
        }
        catch (ConfigurationException cex)
        {
            throw new ConfigurationRuntimeException(cex);
        }
    }
View Full Code Here

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

        XMLBuilderParametersImpl params = new XMLBuilderParametersImpl()
        {
            @Override
            public XMLBuilderParametersImpl clone()
            {
                throw new ConfigurationRuntimeException();
            }
        };
        assertSame("Wrong result", params,
                ConfigurationUtils.cloneIfPossible(params));
    }
View Full Code Here

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

            new FileHandler(c).load(TEST_FILE);
            return c;
        }
        catch (ConfigurationException cex)
        {
            throw new ConfigurationRuntimeException(cex);
        }
    }
View Full Code Here

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

        {
            FileSystemManager fsManager = VFS.getManager();
            String uri = resolveFileURI();
            if (uri == null)
            {
                throw new ConfigurationRuntimeException("Unable to determine file to monitor");
            }
            return fsManager.resolveFile(uri);
        }
        catch (FileSystemException fse)
        {
            String msg = "Unable to monitor " + getFileHandler().getURL().toString();
            log.error(msg);
            throw new ConfigurationRuntimeException(msg, fse);
        }
    }
View Full Code Here

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

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

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

     * @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

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

            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

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

            if (node.matchesConfigRootNode(config))
            {
                return new XMLBeanDeclaration(config, node);
            }
        }
        throw new ConfigurationRuntimeException("Unable to match node for "
                + node.nodeName());
    }
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.