Package com.volantis.xml.sax

Examples of com.volantis.xml.sax.ExtendedSAXParseException


                    skipElementBody();
                    return;

                default :
                    // An unknown return code was received from the PAPIElement.
                    throw new ExtendedSAXParseException("Unknown return code of " +
                            result + " from " + element + " startElement",
                            marlinContext.getLocator());
            }
        } catch (PAPIException e) {
            // Wrap the exception in a SAXException.
            throw new ExtendedSAXParseException(null, marlinContext.getLocator(), e);
        }
    }
View Full Code Here


                    }
                    return;

                default :
                    // An unknown return code was received from the MCSIElement.
                    throw new ExtendedSAXParseException("Unknown return code of "
                            + result + " from " + element + " endElement",
                            marlinContext.getLocator());
            }
        } catch (PAPIException e) {
            // Wrap the exception in a SAXException.
            throw new ExtendedSAXParseException(null, marlinContext.getLocator(), e);
        }
    }
View Full Code Here

            super.parse(fragInputSource);
        } catch (SAXParseException saxe) {
            // this exception is caught and fixed because if the
            // http://apache.org/xml/features/continue-after-fatal-error
            // property is not set this exception will be available externally
            throw new ExtendedSAXParseException(saxe.getLocalizedMessage(),
                                        wrappedLocator);
        }
    }
View Full Code Here

        int columnNumber = DocumentFragmentLocator.fixColumnNumber(
                saxException.getLineNumber(),
                saxException.getColumnNumber());

        // Create and return a new ExtendedSAXParseException with correct column number information
        SAXParseException except = new ExtendedSAXParseException(
                saxException.getMessage(),
                saxException.getPublicId(), saxException.getSystemId(),
                saxException.getLineNumber(), columnNumber,
                saxException);
        return except;
View Full Code Here

                document.appendChild(rootNode);
                sax2dom = new SAX2DOM(rootNode);

                sax2dom.startDocument();
            } catch (ParserConfigurationException e) {
                fatalError(new ExtendedSAXParseException("Failure parsing parameter.",
                        adapterProcess.getPipelineContext().getCurrentLocator(), e));
            }
            inline = true;
        }
    }
View Full Code Here

    /**
     * Report a fatalError
     * @throws SAXException if the error cannot be handled by any ErrorHandler
     */
    private void reportUnexpectedFatalError() throws SAXException {
        fatalError(new ExtendedSAXParseException(
                "The <parameter> element cannot contain an inline " +
                "value if one was provided via the value attribute",
                adapterProcess.getPipelineContext().getCurrentLocator()));
    }
View Full Code Here

     * Report a fatalError
     * @throws SAXException if the error cannot be handled by any
     * ErrorHandler
     */
    private void reportUnexpectedFatalError() throws SAXException {
        fatalError(new ExtendedSAXParseException(
                "transformation element cannot contain an inline " +
                "stylesheet if one was provided via an href attribute",
                adapterProcess.getPipelineContext().getCurrentLocator()));
    }
View Full Code Here

        }

        try {
            tracker.startElement(namespaceURI, localName, qName);
        } catch (XPathException e) {
            throw new ExtendedSAXParseException(
                    "Could not process startElement event",
                    locator,
                    e);
        } catch (IllegalStateException e) {
            // This situation can arise because validation now depends upon
            // obtaining the list of child elements and iterating over them
            // rather than explicitly searching for children using xpath. As
            // a result it is possible that the list of children is out of date
            // for example if two quick editions occur that change the children.
            // This is not a problem because the IllegalStateException merely
            // indicates that the document being validated is out of date and
            // therefore does not need to be validated as it is no longer
            // current. In this situation parsing should be terminated by
            // throwing a TerminateParsingException and specifically catching
            // this and ignoring it high.
            terminateValidation();
            throw new TerminateParsingException("Document out-of-date");
        }

        // Report any "supplementary" errors before any validation errors.
        // This is because we currently throw away (!) any errors after the
        // first one which occurs for each xpath and the supplementary errors
        // are higher level than the schema validation errors.
        try {
            invokeSupplementaryValidators(namespaceURI, localName);
        } catch (XPathException e) {
            throw new ExtendedSAXParseException(
                    "Could not process endElement event",
                    locator,
                    e);
        }
View Full Code Here

                    }
                    return;

                default :
                    // An unknown return code was received from the PAPIElement.
                    throw new ExtendedSAXParseException("Unknown return code of "
                            + result + " from " + element + " endElement",
                            marlinContext.getLocator());
            }
        } catch (PAPIException e) {
            // Wrap the exception in a SAXException.
            throw new ExtendedSAXParseException(null, marlinContext.getLocator(), e);
        }
    }
View Full Code Here

            } else if ("arguments".equals(localName)) {
                pushArgumentsEntryOnStack(saxAttributes);
            } else if ("argument".equals(localName)) {
                pushArgumentEntryOnStack(saxAttributes);
            } else {
                throw new ExtendedSAXParseException("Unknown IAPIElement: " +
                        localName, marlinContext.getLocator());
            }
            callIAPIElementStart();
        }
    }
View Full Code Here

TOP

Related Classes of com.volantis.xml.sax.ExtendedSAXParseException

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.