Class NativeException

All Implemented Interfaces:
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 Details

    • serialVersionUID

      private static final long serialVersionUID
      See Also:
    • source

      private 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(String message, 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 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).