org.openoffice.ide.eclipse.core.preferences
Class InvalidConfigException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by org.openoffice.ide.eclipse.core.preferences.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.

Author:
cedricbosdo
See Also:
IOOo, ISdk, Serialized Form

Field Summary
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
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
 int getErrorCode()
          Returns the error code of the exception among the constants of the InvalidSDKException class.
 
Methods inherited from class java.lang.Throwable
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, 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.