Package com.volantis.xml.pipeline.sax

Examples of com.volantis.xml.pipeline.sax.XMLPipelineException


            if (evaluationMode == EvaluationMode.REPEATED) {
                // Add a process that will only allow characters and ignorable
                // whitespace events through to perform the complexity testing
                addComplexityChecker(target, parameter);
            } else if (recording.isComplex()) {
                throw new XMLPipelineException("The " + parameter +
                        " value's type is simple but complex markup " +
                        "has been found", null);
            }
        }
View Full Code Here


                            throws SAXException {
                        error();
                    }

                    private void error() throws SAXException {
                        throw new XMLPipelineException("The '" + parameter +
                                "' parameter was declared to be simple " +
                                "but complex markup was produced during " +
                                "evaluation",
                                null);
                    }
View Full Code Here

            } else {
                // Need the pipeline to be an instance of
                // XMLPipelineProcessImpl but wasn't. Deliver a fatal error
                // down the pipeline.
                XMLPipelineContext context = pipeline.getPipelineContext();
                XMLPipelineException error = new XMLPipelineException(
                        "Expected pipeline to be instance of " +
                        "XMLPipelineProcessImpl, but was " +
                        pipeline.getClass(),
                        context.getCurrentLocator());
                // send the error down the pipeline
View Full Code Here

                        TransformConfiguration.class);

        if (configuration == null) {
            // cannot get hold of the configuration. As this is fatal
            // deliver a fatal error down the pipeline
            XMLPipelineException error = new XMLPipelineException(
                    "Could not retrieve the transform configuration",
                    context.getCurrentLocator());

            try {
                pipeline.getPipelineProcess().fatalError(error);
View Full Code Here

    // javadoc inherited
    public void error(TransformerException e) throws TransformerException {
        try {
            // pass the error on down the pipeline
            error(new XMLPipelineException(
                    "Transformation failed",
                    getPipelineContext().getCurrentLocator(),
                    e));
        } catch (SAXException se) {
            // could perhaps throw a new TransformerException. However,
View Full Code Here

    // javadoc inherited
    public void fatalError(TransformerException e) throws TransformerException {
        try {
            // pass the error on down the pipeline
            fatalError(new XMLPipelineException(
                    "Transformation failed",
                    getPipelineContext().getCurrentLocator(),
                    e));
        } catch (SAXException se) {
            // could perhaps throw a new TransformerException. However,
View Full Code Here

   
    // javadoc inherited
    public void warning(TransformerException e) throws TransformerException {
        try {
            // pass the error on down the pipeline
            warning(new XMLPipelineException(
                    "Transformation failed",
                    getPipelineContext().getCurrentLocator(),
                    e));
        } catch (SAXException se) {
            // could perhaps throw a new TransformerException. However,
View Full Code Here

            if (config == null ||
                    !(config instanceof URLRewriteProcessConfiguration)) {
                // Cannot get hold of the configuration. As this is fatal
                // deliver a fatal error down the pipeline
                XMLPipelineException error = new XMLPipelineException(
                        "Could not retrieve the URL rewrite process " +
                        "configuration",
                        context.getCurrentLocator());

                try {
View Full Code Here

        if (config == null ||
                !(config instanceof URLToURLCConfiguration)) {
            // cannot get hold of the configuration. As this is fatal
            // deliver a fatal error down the pipeline
            XMLPipelineException error = new XMLPipelineException(
                    "Could not retrieve the URL To URLC converter " +
                    "configuration",
                    context.getCurrentLocator());

            try {
View Full Code Here

                context.pushBaseURI(getUrlString());
                httpManager.sendRequest(createRequestDetails(), context);
                webdTransaction.stop(MonitoredTransaction.SUCCESSFUL, getUrlString());
            } catch (HTTPException e) {
                webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
                fatalError(new XMLPipelineException(
                        exceptionLocalizer.format(
                                "http-request-process-failure",
                                urlString),
                        context.getCurrentLocator(),
                        e));
            } catch (RuntimeHttpException e) {
                webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
                fatalError(new XMLPipelineException(
                        exceptionLocalizer.format(
                                "http-request-process-failure",
                                urlString),
                        context.getCurrentLocator(),
                        e));
            } catch (MalformedURLException e) {
                webdTransaction.stop(MonitoredTransaction.FAILED, getUrlString());
                fatalError(new XMLPipelineException(
                        "base uri attribute is malformed",
                        context.getCurrentLocator(),
                        e));
            } finally {
                context.popBaseURI();
View Full Code Here

TOP

Related Classes of com.volantis.xml.pipeline.sax.XMLPipelineException

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.