blob: 94c3eef1200ec88e69b0c4971cf287f6c01814a7 [file] [log] [blame]
<HTML>
<BODY BGCOLOR="white">
<PRE>
<FONT color="green">001</FONT> /*<a name="line.1"></a>
<FONT color="green">002</FONT> * Copyright (c) 2002 World Wide Web Consortium,<a name="line.2"></a>
<FONT color="green">003</FONT> * (Massachusetts Institute of Technology, Institut National de<a name="line.3"></a>
<FONT color="green">004</FONT> * Recherche en Informatique et en Automatique, Keio University). All<a name="line.4"></a>
<FONT color="green">005</FONT> * Rights Reserved. This program is distributed under the W3C's Software<a name="line.5"></a>
<FONT color="green">006</FONT> * Intellectual Property License. This program is distributed in the<a name="line.6"></a>
<FONT color="green">007</FONT> * hope that it will be useful, but WITHOUT ANY WARRANTY; without even<a name="line.7"></a>
<FONT color="green">008</FONT> * the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR<a name="line.8"></a>
<FONT color="green">009</FONT> * PURPOSE.<a name="line.9"></a>
<FONT color="green">010</FONT> * See W3C License http://www.w3.org/Consortium/Legal/ for more details.<a name="line.10"></a>
<FONT color="green">011</FONT> */<a name="line.11"></a>
<FONT color="green">012</FONT> <a name="line.12"></a>
<FONT color="green">013</FONT> package org.apache.xpath.domapi;<a name="line.13"></a>
<FONT color="green">014</FONT> <a name="line.14"></a>
<FONT color="green">015</FONT> import javax.xml.transform.SourceLocator;<a name="line.15"></a>
<FONT color="green">016</FONT> import javax.xml.transform.TransformerException;<a name="line.16"></a>
<FONT color="green">017</FONT> <a name="line.17"></a>
<FONT color="green">018</FONT> /**<a name="line.18"></a>
<FONT color="green">019</FONT> *<a name="line.19"></a>
<FONT color="green">020</FONT> * A new exception to add support for DOM Level 3 XPath API.<a name="line.20"></a>
<FONT color="green">021</FONT> * This class is needed to throw a org.w3c.dom.DOMException with proper error code in<a name="line.21"></a>
<FONT color="green">022</FONT> * createExpression method of XPathEvaluatorImpl (a DOM Level 3 class).<a name="line.22"></a>
<FONT color="green">023</FONT> * <a name="line.23"></a>
<FONT color="green">024</FONT> * This class extends TransformerException because the error message includes information<a name="line.24"></a>
<FONT color="green">025</FONT> * about where the XPath problem is in the stylesheet as well as the XPath expression itself.<a name="line.25"></a>
<FONT color="green">026</FONT> * <a name="line.26"></a>
<FONT color="green">027</FONT> * @xsl.usage internal<a name="line.27"></a>
<FONT color="green">028</FONT> */<a name="line.28"></a>
<FONT color="green">029</FONT> final public class XPathStylesheetDOM3Exception extends TransformerException {<a name="line.29"></a>
<FONT color="green">030</FONT> public XPathStylesheetDOM3Exception(String msg, SourceLocator arg1)<a name="line.30"></a>
<FONT color="green">031</FONT> {<a name="line.31"></a>
<FONT color="green">032</FONT> super(msg, arg1);<a name="line.32"></a>
<FONT color="green">033</FONT> }<a name="line.33"></a>
<FONT color="green">034</FONT> }<a name="line.34"></a>
</PRE>
</BODY>
</HTML>