Package com.volantis.xml.pipeline.sax

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


        } catch (MalformedURLException e) {
            StringBuffer errorMessages = this.getCollatingErrorListener().getErrorBuffer();
            this.getCollatingErrorListener().resetErrorBuffer();
            Locator locator = getPipelineContext().getCurrentLocator();
            SAXParseException error =
                    new ResourceNotFoundException("Error while attempting to process: "+
                            absoluteURI + "\ndue to following errors: "+
                            errorMessages, locator, e);
            fatalError(error);
        } catch (SAXException e) {
            handleException(e,absoluteURI);
View Full Code Here


        // The href attribute is required
        if (null == href) {
            // need to send an error down the pipeline
            Locator locator = context.getCurrentLocator();
            ResourceNotFoundException rnfe =
                    new ResourceNotFoundException("URLConnector requires the " +
                                                  "href attribute to be set",
                                                  locator);
            isValid = false;
            target.fatalError(rnfe);
        }
View Full Code Here

        } catch (MalformedURLException e) {
            uridFetchTransaction.stop(
                MonitoredTransaction.FAILED, urlAsString);
            // need to generate an error event.
            Locator locator = context.getCurrentLocator();
            ResourceNotFoundException error = new ResourceNotFoundException(
                "The URI " + href + " could not be included", locator, e);
            error.initErrorInfo(id, null, null,null);
            target.fatalError(error);
        } catch (RuntimeHttpException e) {
            uridFetchTransaction.stop(
                MonitoredTransaction.FAILED, urlAsString);
            // need to generate an error event.
            Locator locator = context.getCurrentLocator();
            ResourceNotFoundException error = new ResourceNotFoundException(
                "The URI " + href + " could not be included", locator, e);
            error.initErrorInfo(id, null, null,null);
            target.fatalError(error);
        }
    }
View Full Code Here

            // get hold of the current locator
            Locator currentLocator = context.getCurrentLocator();

            // this is a streaming error as the part of the document might
            // have been included.
            ResourceNotFoundException se =
                    new ResourceNotFoundException(
                            "Could not find the document " +
                            url.toExternalForm(),
                            currentLocator, ioe);

            // report this as a error.
View Full Code Here

TOP

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

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.