org.apache.subversion.javahl
Class ClientException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.apache.subversion.javahl.SubversionException
              extended by org.apache.subversion.javahl.ClientException
All Implemented Interfaces:
Serializable

public class ClientException
extends SubversionException

This exception is thrown whenever something goes wrong in the Subversion JavaHL binding's JNI interface.

See Also:
Serialized Form

Method Summary
static ClientException fromException(Throwable t)
          A conversion routine for maintaining backwards compatibility.
 int getAprError()
           
 String getMessage()
           
 String getSource()
           
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

fromException

public static ClientException fromException(Throwable t)
A conversion routine for maintaining backwards compatibility.

Parameters:
t - The exception to (potentially) convert.
Returns:
t coerced or converted into a ClientException.

getSource

public String getSource()
Returns:
The error source (e.g. line number).

getAprError

public int getAprError()
Returns:
Any associated APR error code for a wrapped svn_error_t.

getMessage

public String getMessage()
Overrides:
getMessage in class Throwable
Returns:
The description, with source and aprError appended (if any).