Class 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 aprError
      Any associated APR error code for a wrapped svn_error_t.
      private static long serialVersionUID  
      private java.lang.String source
      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

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getAprError()  
      java.lang.String getMessage()  
      java.lang.String getSource()  
      • 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 Detail

      • 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 Detail

      • 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 Detail

      • 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).