com.motorola.oem.osc
Class OSCException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.motorola.oem.OEMException
              extended by com.motorola.oem.osc.OSCException

public class OSCException
extends OEMException


Field Summary
static int GET_PROPERTY_KEY_NOT_FOUND_ERROR
          Attempt to use OSC.getProperty(java.lang.String) with an invalid key
static int GET_PROPERTY_VALUE_OF_KEY_CANT_BE_RETRIEVE_ERROR
          Failed to retrieve a value of a key using OSC.getProperty(java.lang.String)
static int SET_PROPERTY_FAIL_SET_VALUE_ERROR
          Failed to set the value using OSC.getProperty(java.lang.String)
static int SET_PROPERTY_KEY_NOT_FOUND_ERROR
          Attempt to use OSC.setProperty(java.lang.String, java.lang.String) with an invalid key
 
Fields inherited from class com.motorola.oem.OEMException
CONFIGURATION_ERROR, CONSTRUCT_CLASS_ERROR, GENERAL_ERROR, ILLEGAL_PARAM_ERROR
 
Constructor Summary
OSCException(java.lang.Exception e)
          Constructs an object with the specified Exception's properties.
OSCException(int errorCode)
          Constructs an object with the specified error code.
OSCException(int errorCode, java.lang.Exception e)
          Constructs an object with the specified error code and Exception's properties.
OSCException(int errorCode, java.lang.String errorMessage)
          Constructs an object with the specified error code and error message.
OSCException(java.lang.String errorMessage)
          Constructs an object with the specified error message.
 
Method Summary
 
Methods inherited from class com.motorola.oem.OEMException
getErrorCode
 
Methods inherited from class java.lang.Throwable
getMessage, printStackTrace, toString
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

GET_PROPERTY_KEY_NOT_FOUND_ERROR

public static final int GET_PROPERTY_KEY_NOT_FOUND_ERROR
Attempt to use OSC.getProperty(java.lang.String) with an invalid key

See Also:
Constant Field Values

GET_PROPERTY_VALUE_OF_KEY_CANT_BE_RETRIEVE_ERROR

public static final int GET_PROPERTY_VALUE_OF_KEY_CANT_BE_RETRIEVE_ERROR
Failed to retrieve a value of a key using OSC.getProperty(java.lang.String)

See Also:
Constant Field Values

SET_PROPERTY_KEY_NOT_FOUND_ERROR

public static final int SET_PROPERTY_KEY_NOT_FOUND_ERROR
Attempt to use OSC.setProperty(java.lang.String, java.lang.String) with an invalid key

See Also:
Constant Field Values

SET_PROPERTY_FAIL_SET_VALUE_ERROR

public static final int SET_PROPERTY_FAIL_SET_VALUE_ERROR
Failed to set the value using OSC.getProperty(java.lang.String)

See Also:
Constant Field Values
Constructor Detail

OSCException

public OSCException(int errorCode,
                    java.lang.String errorMessage)
Constructs an object with the specified error code and error message.

Parameters:
errorMessage - error message to be used.
errorCode - error code of specific exception type from OSC API list.

OSCException

public OSCException(int errorCode,
                    java.lang.Exception e)
Constructs an object with the specified error code and Exception's properties.

Parameters:
e - The exception to use as an error message reference
errorCode - Error code of a specific exception type from OSC API list

OSCException

public OSCException(int errorCode)
Constructs an object with the specified error code.

Parameters:
errorCode - Error code of a specific exception type from OSC API list

OSCException

public OSCException(java.lang.String errorMessage)
Constructs an object with the specified error message.

Parameters:
errorMessage - Error message to be used.

OSCException

public OSCException(java.lang.Exception e)
Constructs an object with the specified Exception's properties.

Parameters:
e - The exception to use as an error message reference