/**
 * @copyright
 * ====================================================================
 * Copyright (c) 2003-2007 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;

/**
 * This exception is thrown whenever something goes wrong in the
 * Subversion JavaHL binding's JNI interface.
 */
public class ClientException extends NativeException
{
    // Update the serialVersionUID when there is a incompatible change
    // made to this class.  See any of the following, depending upon
    // the Java release.
    // http://java.sun.com/j2se/1.3/docs/guide/serialization/spec/version.doc7.html
    // http://java.sun.com/j2se/1.4/pdf/serial-spec.pdf
    // http://java.sun.com/j2se/1.5.0/docs/guide/serialization/spec/version.html#6678
    // http://java.sun.com/javase/6/docs/platform/serialization/spec/version.html#6678
    private static final long serialVersionUID = 1L;

    /**
     * This constructor is only used by the native library.
     *
     * @param message A description of the problem.
     * @param source The error's source.
     * @param aprError Any associated APR error code for a wrapped
     * <code>svn_error_t</code>.
     */
    ClientException(String message, String source, int aprError)
    {
        super(message, source, aprError);
    }
}

@@ -1898,11 +1898,459 @@
 );%0A    %7D
+%0A%0A    /**%0A     * A conversion routine for maintaining backwards compatibility.%0A     * @return %3Ccode%3Ee%3C/code%3E coerced or converted into a%0A     * %3Ccode%3EClientException%3C/code%3E.%0A     */%0A    static ClientException fromException(Throwable t)%0A    %7B%0A        if (t instanceof ClientException)%0A        %7B%0A            return (ClientException) t;%0A        %7D%0A        else%0A        %7B%0A            return new ClientException(t.getMessage(), null, -1);%0A        %7D%0A    %7D
 %0A%7D%0A

Add new data type conversion routine for maintaining backwards compat while moving to newer APIs.