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

class NativeException extends SubversionException
This exception is thrown whenever something goes wrong in the Subversion JavaHL binding's JNI code.
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    private int
    Any associated APR error code for a wrapped svn_error_t.
    private static final long
     
    private java.lang.String
    Any associated error source (e.g.
  • Constructor Summary

    Constructors
    Constructor
    Description
    NativeException(java.lang.String message, java.lang.String source, int aprError)
    This constructor is only used by the native library.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    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 source
      Any associated error source (e.g. file name and line number) for a wrapped svn_error_t.
    • aprError

      private int aprError
      Any associated APR error code for a wrapped svn_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 wrapped svn_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()
      Overrides:
      getMessage in class java.lang.Throwable
      Returns:
      The description, with source and aprError appended (if any).