/*
 * $Header$
 * $Revision$
 * $Date$
 *
 * ====================================================================
 *
 * Copyright (C) 2000-2002 bob mcwhirter & James Strachan.
 * All rights reserved.
 *
 * Redistribution and use in source and binary forms, with or without
 * modification, are permitted provided that the following conditions
 * are met:
 * 
 * 1. Redistributions of source code must retain the above copyright
 *    notice, this list of conditions, and the following disclaimer.
 *
 * 2. Redistributions in binary form must reproduce the above copyright
 *    notice, this list of conditions, and the disclaimer that follows 
 *    these conditions in the documentation and/or other materials 
 *    provided with the distribution.
 *
 * 3. The name "Jaxen" must not be used to endorse or promote products
 *    derived from this software without prior written permission.  For
 *    written permission, please contact license@jaxen.org.
 * 
 * 4. Products derived from this software may not be called "Jaxen", nor
 *    may "Jaxen" appear in their name, without prior written permission
 *    from the Jaxen Project Management (pm@jaxen.org).
 * 
 * In addition, we request (but do not require) that you include in the 
 * end-user documentation provided with the redistribution and/or in the 
 * software itself an acknowledgement equivalent to the following:
 *     "This product includes software developed by the
 *      Jaxen Project (http://www.jaxen.org/)."
 * Alternatively, the acknowledgment may be graphical using the logos 
 * available at http://www.jaxen.org/
 *
 * THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
 * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
 * DISCLAIMED.  IN NO EVENT SHALL THE Jaxen AUTHORS OR THE PROJECT
 * CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
 * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
 * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
 * USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
 * OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
 * OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
 * SUCH DAMAGE.
 *
 * ====================================================================
 * This software consists of voluntary contributions made by many 
 * individuals on behalf of the Jaxen Project and was originally 
 * created by bob mcwhirter <bob@werken.com> and 
 * James Strachan <jstrachan@apache.org>.  For more information on the 
 * Jaxen Project, please see <http://www.jaxen.org/>.
 * 
 * $Id$
 */


package org.jaxen;



/** Generic Jaxen exception.
 *
 *  <p>
 *  This is the root of all Jaxen exceptions.
 *  It may wrap other exceptions.  See {@link #getRootCause}.
 *
 *  @author <a href="mailto:bob@werken.com">bob mcwhirter</a>
 */
public class JaxenException extends org.jaxen.saxpath.SAXPathException
{
    /** Root cause, if any. */
    private Throwable rootCause;

    /** Construct with a message.
     *
     *  @param message The error message.
     */
    public JaxenException(String message)
    {
        super( message );
    }

    /** Construct with a root cause.
     *
     *  @param rootCause Root cause of the error.
     */
    public JaxenException(Throwable rootCause)
    {
        super( "wrapped exception" );
        this.rootCause = rootCause;
    }

    /** Retrieve the root cause, if any.
     *
     *  @return Root cause of the error.
     */
    public Throwable getRootCause()
    {
        return this.rootCause;
    }
}


@@ -2780,12 +2780,14 @@
 ;%0A%0A%0A
-%0A
 /**
+%0A *
  Gen
@@ -2817,17 +2817,12 @@
 *%0A *
- 
  %3Cp%3E
-%0A * 
  Thi
@@ -2859,20 +2859,16 @@
 eptions.
-%0A * 
  It may 
@@ -2893,43 +2893,14 @@
 ons.
-  See %7B@link #getRootCause%7D.
 %0A *%0A *
- 
  @au
@@ -3042,72 +3042,14 @@
  /**
- Root cause, if any. */%0A    private Throwable rootCause;%0A%0A    /*
+%0A     
 * Co
@@ -3077,33 +3077,32 @@
 e.%0A     *%0A     *
- 
  @param message 
@@ -3154,16 +3154,17 @@
 ception(
+ 
 String m
@@ -3169,16 +3169,17 @@
  message
+ 
 )%0A    %7B%0A
@@ -3218,16 +3218,23 @@
 %0A    /**
+%0A     *
  Constru
@@ -3268,17 +3268,16 @@
 *%0A     *
- 
  @param 
@@ -3345,16 +3345,17 @@
 ception(
+ 
 Throwabl
@@ -3365,16 +3365,17 @@
 ootCause
+ 
 )%0A    %7B%0A
@@ -3393,233 +3393,8 @@
 er( 
-%22wrapped exception%22 );%0A        this.rootCause = rootCause;%0A    %7D%0A%0A    /** Retrieve the root cause, if any.%0A     *%0A     *  @return Root cause of the error.%0A     */%0A    public Throwable getRootCause()%0A    %7B%0A        return this.
 root
@@ -3398,16 +3398,18 @@
 ootCause
+ )
 ;%0A    %7D%0A

Change to used nested exception of parent class