/**
 * @copyright
 * ====================================================================
 * Copyright (c) 2003-2004 CollabNet.  All rights reserved.
 *
 * This software is licensed as described in the file COPYING, which
 * you should have received as part of this distribution.  The terms
 * are also available at http://subversion.tigris.org/license-1.html.
 * If newer versions of this license are posted there, you may use a
 * newer version instead, at your option.
 *
 * This software consists of voluntary contributions made by many
 * individuals.  For exact contribution history, see the revision
 * history and logs, available at http://subversion.tigris.org/.
 * ====================================================================
 * @endcopyright
 */
package org.tigris.subversion.javahl;

/**
 * Subversion client exception class.
 * This exception is throw whenever something goes wrong in the jni-interface
 */
public class ClientException extends Exception
{
    /**
     * The constructor is only used by the native library.
     * @param message message
     * @param source source
     * @param aprError APR error code
     */
    ClientException(String message, String source, int aprError)
    {
    	super(message);
        this.source = source;
		this.aprError = aprError;
    }
    /**
     * the exception message
     */
    private String message;

    /**
     * the error source
     */
    private String source;
    /**
     * the APR error id
     */
    private int aprError;

    /**
     * Returns the error source.
     */
    public String getSource()
    {
        return source;
    }
    /**
     * Returns the APR error id.
     */
    public int getAprError()
    {
        return aprError;
    }
}

@@ -805,46 +805,8 @@
 /**%0A
- * Subversion client exception class.%0A
  * T
@@ -827,16 +827,17 @@
 is throw
+n
  wheneve
@@ -869,13 +869,44 @@
  the
- jni-
+%0A * Subversion JavaHL binding's JNI 
 inte
@@ -910,16 +910,17 @@
 nterface
+.
 %0A */%0Apub
@@ -980,19 +980,292 @@
 %0A     * 
-The
+Any associated error source (e.g. line number) for a wrapped%0A     * %3Ccode%3Esvn_error_t%3C/code%3E.%0A     */%0A    private String source;%0A%0A    /**%0A     * Any associated APR error code for a wrapped%0A     * %3Ccode%3Esvn_error_t%3C/code%3E.%0A     */%0A    private int aprError;%0A%0A    /**%0A     * This
  constru
@@ -1305,16 +1305,23 @@
 ibrary.%0A
+     *%0A
      * @
@@ -1334,23 +1334,45 @@
 message 
-message
+A description of the problem.
 %0A     * 
@@ -1385,22 +1385,35 @@
  source 
+The error's 
 source
+.
 %0A     * 
@@ -1429,29 +1429,91 @@
 rError A
-PR error code
+ny associated APR error code for a wrapped%0A     * %3Ccode%3Esvn_error_t%3C/code%3E.
 %0A     */
@@ -1588,17 +1588,20 @@
   %7B%0A    
-%09
+    
 super(me
@@ -1642,10 +1642,16 @@
 ce;%0A
-%09%09
+        
 this
@@ -1670,32 +1670,33 @@
 aprError;%0A    %7D%0A
+%0A
     /**%0A     * t
@@ -1698,240 +1698,51 @@
   * 
-the exception message%0A     */%0A    private String message;%0A%0A    /**%0A     * the error source%0A     */%0A    private String source;%0A    /**%0A     * the APR error id%0A     */%0A    private int aprError;%0A%0A    /**%0A     * Returns the error source
+@return The error source (e.g. line number)
 .%0A  
@@ -1812,16 +1812,17 @@
 ;%0A    %7D%0A
+%0A
     /**%0A
@@ -1832,32 +1832,91 @@
   * 
-R
+@r
 eturn
-s the APR error id
+ Any associated APR error code for a wrapped%0A     * %3Ccode%3Esvn_error_t%3C/code%3E
 .%0A  

Improve implementation of and documentation for the ClientException class.