Package org.tigris.subversion.javahl
Class NativeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.tigris.subversion.javahl.SubversionException
org.tigris.subversion.javahl.NativeException
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ClientException
This exception is thrown whenever something goes wrong in the
Subversion JavaHL binding's JNI code.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate int
Any associated APR error code for a wrappedsvn_error_t
.private static final long
private String
Any associated error source (e.g. -
Constructor Summary
ConstructorsConstructorDescriptionNativeException
(String message, String source, int aprError) This constructor is only used by the native library. -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
source
Any associated error source (e.g. file name and line number) for a wrappedsvn_error_t
. -
aprError
private int aprErrorAny associated APR error code for a wrappedsvn_error_t
.
-
-
Constructor Details
-
NativeException
This constructor is only used by the native library.- Parameters:
message
- A description of the problem.source
- The error's source.aprError
- Any associated APR error code for a wrappedsvn_error_t
.
-
-
Method Details
-
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
- Overrides:
getMessage
in classThrowable
- Returns:
- The description, with
source
andaprError
appended (if any).
-