001/*
002 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
003 * 
004 * This software is open source. 
005 * See the bottom of this file for the licence.
006 * 
007 * $Id: InvalidXPathException.java,v 1.1 2001/07/12 11:02:19 jstrachan Exp $
008 */
009
010package org.dom4j;
011
012/** <p><code>InvalidXPathException</code> is thrown when an invalid
013  * XPath expression is used to traverse an XML document</p>
014  *
015  * @version $Revision: 1.1 $
016  */
017public class InvalidXPathException extends IllegalArgumentException {
018
019    public InvalidXPathException(String xpath) {
020        super( "Invalid XPath expression: " + xpath );
021    }
022    
023    public InvalidXPathException(String xpath, String reason) {
024        super( "Invalid XPath expression: " + xpath + " " + reason );
025    }
026}
027
028
029
030
031/*
032 * Redistribution and use of this software and associated documentation
033 * ("Software"), with or without modification, are permitted provided
034 * that the following conditions are met:
035 *
036 * 1. Redistributions of source code must retain copyright
037 *    statements and notices.  Redistributions must also contain a
038 *    copy of this document.
039 *
040 * 2. Redistributions in binary form must reproduce the
041 *    above copyright notice, this list of conditions and the
042 *    following disclaimer in the documentation and/or other
043 *    materials provided with the distribution.
044 *
045 * 3. The name "DOM4J" must not be used to endorse or promote
046 *    products derived from this Software without prior written
047 *    permission of MetaStuff, Ltd.  For written permission,
048 *    please contact dom4j-info@metastuff.com.
049 *
050 * 4. Products derived from this Software may not be called "DOM4J"
051 *    nor may "DOM4J" appear in their names without prior written
052 *    permission of MetaStuff, Ltd. DOM4J is a registered
053 *    trademark of MetaStuff, Ltd.
054 *
055 * 5. Due credit should be given to the DOM4J Project
056 *    (http://dom4j.org/).
057 *
058 * THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
059 * ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
060 * NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
061 * FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
062 * METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
063 * INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
064 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
065 * SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
066 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
067 * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
068 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
069 * OF THE POSSIBILITY OF SUCH DAMAGE.
070 *
071 * Copyright 2001 (C) MetaStuff, Ltd. All Rights Reserved.
072 *
073 * $Id: InvalidXPathException.java,v 1.1 2001/07/12 11:02:19 jstrachan Exp $
074 */