Package org.apache.subversion.javahl
Class NativeException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.apache.subversion.javahl.SubversionException
org.apache.subversion.javahl.NativeException
- All Implemented Interfaces:
java.io.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 java.lang.String
Any associated error source (e.g. -
Constructor Summary
ConstructorsConstructorDescriptionNativeException
(java.lang.String message, java.lang.String source, int aprError) This constructor is only used by the native library. -
Method Summary
Modifier and TypeMethodDescriptionint
java.lang.String
java.lang.String
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
source
private java.lang.String sourceAny 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
NativeException(java.lang.String message, java.lang.String source, int aprError) 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
public java.lang.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 java.lang.String getMessage()
-