001    /*
002     * Copyright (c) 2002 World Wide Web Consortium,
003     * (Massachusetts Institute of Technology, Institut National de
004     * Recherche en Informatique et en Automatique, Keio University). All
005     * Rights Reserved. This program is distributed under the W3C's Software
006     * Intellectual Property License. This program is distributed in the
007     * hope that it will be useful, but WITHOUT ANY WARRANTY; without even
008     * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
009     * PURPOSE.
010     * See W3C License http://www.w3.org/Consortium/Legal/ for more details.
011     */
012    
013    package org.apache.xpath.domapi;
014    
015    import javax.xml.transform.SourceLocator;
016    import javax.xml.transform.TransformerException;
017    
018    /**
019     *
020     * A new exception to add support for DOM Level 3 XPath API.
021     * This class is needed to throw a org.w3c.dom.DOMException with proper error code in
022     * createExpression method of XPathEvaluatorImpl (a DOM Level 3 class).
023     * 
024     * This class extends TransformerException because the error message includes information
025     * about where the XPath problem is in the stylesheet as well as the XPath expression itself.
026     * 
027     * @xsl.usage internal
028     */
029    final public class XPathStylesheetDOM3Exception extends TransformerException {
030            public XPathStylesheetDOM3Exception(String msg, SourceLocator arg1)
031            {
032                    super(msg, arg1);
033            }
034    }