Class InvalidConfigException

  • All Implemented Interfaces:
    java.io.Serializable

    public class InvalidConfigException
    extends java.lang.Exception
    This exception is thrown when an OOo or SDK isn't valid, ie that it's home doesn't fit to a correct home directory for an OOo or SDK.
    See Also:
    IOOo, ISdk, Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int INVALID_OOO_HOME
      The error points to an invalid OOo home path.
      static int INVALID_SDK_HOME
      The error points to an invalid SDK home path.
    • Constructor Summary

      Constructors 
      Constructor Description
      InvalidConfigException​(java.lang.String pMessage, int pCode)
      Constructor of the invalid SDK exception.
      InvalidConfigException​(java.lang.String pMessage, int pCode, java.lang.Throwable pException)
      Constructor of the invalid SDK exception.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getErrorCode()
      Returns the error code of the exception among the constants of the InvalidSDKException class.
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, 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

      • INVALID_SDK_HOME

        public static final int INVALID_SDK_HOME
        The error points to an invalid SDK home path.
        See Also:
        Constant Field Values
      • INVALID_OOO_HOME

        public static final int INVALID_OOO_HOME
        The error points to an invalid OOo home path.
        See Also:
        Constant Field Values
    • Constructor Detail

      • InvalidConfigException

        public InvalidConfigException​(java.lang.String pMessage,
                                      int pCode)
        Constructor of the invalid SDK exception. It needs a message and a error code among those defined as constants of this class.
        Parameters:
        pMessage - error message
        pCode - error code
      • InvalidConfigException

        public InvalidConfigException​(java.lang.String pMessage,
                                      int pCode,
                                      java.lang.Throwable pException)
        Constructor of the invalid SDK exception. It needs a message and a error code among those defined as constants of this class.
        Parameters:
        pMessage - error message
        pCode - error code
        pException - exception in case there is one.
    • Method Detail

      • getErrorCode

        public int getErrorCode()
        Returns the error code of the exception among the constants of the InvalidSDKException class.
        Returns:
        error code.