Class InvalidConfigException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.libreoffice.ide.eclipse.core.model.config.InvalidConfigException
All Implemented Interfaces:
Serializable

public class InvalidConfigException extends 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:
  • Field Details

    • INVALID_SDK_HOME

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

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

    • InvalidConfigException

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

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

    • getErrorCode

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