Package org.apache.torque.generator.configuration

Examples of org.apache.torque.generator.configuration.ConfigurationException


                            detokenizedPath);
                result = load(templateInputStream, encoding, templateFilter);
            }
            catch (IOException e)
            {
                throw new ConfigurationException(e);
            }
            finally
            {
                if (templateInputStream != null)
                {
View Full Code Here


        String type = optionsSaxHandlerFactory.getType();

        OptionsSaxHandlerFactory oldFactory = factories.get(type);
        if (oldFactory != null)
        {
            throw new ConfigurationException(
                    "Attempted to register an OptionsSaxHandlerFactory "
                        + "of type "
                        + optionsSaxHandlerFactory.getType()
                        + " and class "
                        + optionsSaxHandlerFactory.getClass().getName()
View Full Code Here

    {
        ActionSaxHandlerFactory oldFactory
            = actionSaxHandlerFactories.get(factory.getType());
        if (oldFactory != null)
        {
            throw new ConfigurationException(
                    "Attempted to register an ActionSaxHandlerFactory "
                        + "of type "
                        + factory.getType()
                        + " and class "
                        + factory.getClass().getName()
View Full Code Here

        }
        for (Output existing : outputList)
        {
            if (existing.getName().equals(output.getName()))
            {
                throw new ConfigurationException("Output with name "
                        + output.getName() + " already exists");
            }
        }
        outputList.add(output);
    }
View Full Code Here

                                projectPaths,
                                configurationHandlers));
            }
            catch (SAXParseException e)
            {
                throw new ConfigurationException(
                        "Error parsing controller Configuration "
                            + configurationProvider
                                .getControlConfigurationLocation()
                            + " at line "
                            + e.getLineNumber()
                            + " column "
                            + e.getColumnNumber()
                            + " : "
                            + e.getMessage(),
                        e);

            }
            catch (Exception e)
            {
                throw new ConfigurationException(
                        "Error parsing controller Configuration "
                            + configurationProvider
                                .getControlConfigurationLocation()
                            + e.getMessage(),
                        e);
View Full Code Here

    {
        MergepointMapping oldMapping
                = mergepointMappings.get(mergepointMapping.getName());
        if (oldMapping != null)
        {
            throw new ConfigurationException(
                    "Attempted to add another mergepoint mapping for the name "
                        + mergepointMapping.getName()
                        + " : New mapping mapped to Actions "
                        + mergepointMapping.getActions()
                        + ", old mapping mapped to Actions "
View Full Code Here

    {
        if (output.getFilenameOutlet() == null)
        {
            if (output.getFilename() == null)
            {
                throw new ConfigurationException(
                    "neither filename nor filenameOutlet are set"
                        + " on output" + output);
            }
        }
        else
View Full Code Here

                allMergepointMappings.addAll(
                        fileContent.getMergepointMappings());
            }
            catch (SAXParseException e)
            {
                throw new ConfigurationException(
                        "Error parsing outlet configuration "
                            + outletConfigName
                            + " at line "
                            + e.getLineNumber()
                            + " column "
                            + e.getColumnNumber()
                            + " : "
                            + e.getMessage(),
                        e);

            }
            catch (Exception e)
            {
                throw new ConfigurationException(
                        "Error parsing outlet configuration "
                            + outletConfigName,
                        e);
            }
            finally
View Full Code Here

            QualifiedName qualifiedMergepointName
                = new QualifiedName(name);
            if (qualifiedMergepointName.getNamespace().isRoot())
            {
                // outlet name is missing
                throw new ConfigurationException(
                        "The isolated mergepoint mapping with the name "
                        + name
                        + " needs to be qualified with the outlet name");
            }
            QualifiedName outletName = new QualifiedName(
                    qualifiedMergepointName.getNamespace().toString());
            Outlet outlet = outlets.get(outletName);
            if (outlet == null)
            {
                throw new ConfigurationException(
                        "No outlet with name "
                        + outletName
                        + "exists (required by the isolated mergepoint mapping"
                        + " with the name "
                        + name
View Full Code Here

                    "unitDescriptor must not be null");
        }
        Outlet existingOutlet = outlets.get(outlet.getName());
        if (existingOutlet != null)
        {
            throw new ConfigurationException("Trying to add the outlet "
                    + outlet.getName()
                    + " and class "
                    + outlet.getClass().getName()
                    + " : A outlet with the same name "
                    + " already exists, it has the class "
View Full Code Here

TOP

Related Classes of org.apache.torque.generator.configuration.ConfigurationException

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.