Class InvalidConfigException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.libreoffice.ide.eclipse.core.model.config.InvalidConfigException
- All Implemented Interfaces:
Serializable
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 Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe error points to an invalid OOo home path.static final intThe error points to an invalid SDK home path. -
Constructor Summary
ConstructorsConstructorDescriptionInvalidConfigException(String message, int code) Constructor of the invalid SDK exception.InvalidConfigException(String message, int code, Throwable exception) Constructor of the invalid SDK exception. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the error code of the exception among the constants of theInvalidSDKExceptionclass.Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
INVALID_SDK_HOME
public static final int INVALID_SDK_HOMEThe error points to an invalid SDK home path.- See Also:
-
INVALID_OOO_HOME
public static final int INVALID_OOO_HOMEThe error points to an invalid OOo home path.- See Also:
-
-
Constructor Details
-
InvalidConfigException
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 messagecode- error code
-
InvalidConfigException
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 messagecode- error codeexception- exception in case there is one.
-
-
Method Details
-
getErrorCode
public int getErrorCode()Returns the error code of the exception among the constants of theInvalidSDKExceptionclass.- Returns:
- error code.
-