286N/A * reserved comment block 286N/A * DO NOT REMOVE OR ALTER! 286N/A * Copyright 1999-2004 The Apache Software Foundation. 286N/A * Licensed under the Apache License, Version 2.0 (the "License"); 286N/A * you may not use this file except in compliance with the License. 286N/A * You may obtain a copy of the License at 286N/A * Unless required by applicable law or agreed to in writing, software 286N/A * distributed under the License is distributed on an "AS IS" BASIS, 286N/A * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 286N/A * See the License for the specific language governing permissions and 286N/A * limitations under the License. 286N/A * This class implements an exception object that all 286N/A * XPath classes will throw in case of an error. This class 286N/A * extends TransformerException, and may hold other exceptions. In the 286N/A * case of nested exceptions, printStackTrace will dump 286N/A * all the traces of the nested exceptions, not just the trace 286N/A /** The home of the expression that caused the error. 286N/A * Get the stylesheet node from where this error originated. 286N/A * @return The stylesheet node from where this error originated, or null. 286N/A * Set the stylesheet node from where this error originated. 286N/A * @param styleNode The stylesheet node from where this error originated, or null. 286N/A /** A nested exception. 286N/A * Create an XPathException object that holds 286N/A * @param message The error message. 286N/A * Create an XPathException object that holds 286N/A * @param message The error message. 286N/A * Get the XSLT ElemVariable that this sub-expression references. In order for 286N/A * this to work, the SourceLocator must be the owning ElemTemplateElement. 286N/A * @return The dereference to the ElemVariable, or null if not found. 286N/A * Get the first non-Expression parent of this node. 286N/A * @return null or first ancestor that is not an Expression. 286N/A * Create an XPathException object that holds 286N/A * an error message and the stylesheet node that 286N/A * the error originated from. 286N/A * @param message The error message. 286N/A * @param styleNode The stylesheet node that the error originated from. 286N/A * Create an XPathException object that holds 286N/A * an error message, the stylesheet node that 286N/A * the error originated from, and another exception 286N/A * that caused this exception. 286N/A * @param message The error message. 286N/A * @param styleNode The stylesheet node that the error originated from. 286N/A * @param e The exception that caused this exception. 286N/A * Create an XPathException object that holds 286N/A * an error message, and another exception 286N/A * that caused this exception. 286N/A * @param message The error message. 286N/A * @param e The exception that caused this exception. 286N/A * Print the the trace of methods from where the error 286N/A * originated. This will trace all nested exception 286N/A * objects, as well as this object. 286N/A * @param s The stream where the dump will be sent to. 286N/A * Find the most contained message. 286N/A * @return The error message of the originating exception. 286N/A * Print the the trace of methods from where the error 286N/A * originated. This will trace all nested exception 286N/A * objects, as well as this object. 286N/A * @param s The writer where the dump will be sent to. 286N/A // The printStackTrace method of the Throwable class in jdk 1.4 286N/A // and higher will include the cause when printing the backtrace. 286N/A // The following code is only required when using jdk 1.3 or lower 286N/A * Return the embedded exception, if any. 286N/A * Overrides javax.xml.transform.TransformerException.getException(). 286N/A * @return The embedded exception, or null if there is none.