com.motorola.oem.websession
Class OTAException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.motorola.oem.OEMException
              extended by com.motorola.oem.websession.OTAException

public class OTAException
extends OEMException

 OTA API's specific exception.
 
When caught, the specific error code value can be
retrieved by calling OEMException.getErrorCode()


Field Summary
static int ALREADY_EXIST_ERROR
          OTA already exists error code
static int NULL_POINTER_ERROR
          OTA null pointer error code
 
Fields inherited from class com.motorola.oem.OEMException
CONFIGURATION_ERROR, CONSTRUCT_CLASS_ERROR, GENERAL_ERROR, ILLEGAL_PARAM_ERROR
 
Constructor Summary
OTAException(java.lang.Exception e)
          Constructs an object with the specified Exception's properties.
OTAException(int errorCode)
          Constructs an object with the specified error code.
OTAException(int errorCode, java.lang.Exception e)
          Constructs an object with the specified Exception's properties and error code.
OTAException(int errorCode, java.lang.String errorMessage)
          Constructs an object with the specified error code and error message.
OTAException(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

ALREADY_EXIST_ERROR

public static final int ALREADY_EXIST_ERROR
OTA already exists error code

See Also:
Constant Field Values

NULL_POINTER_ERROR

public static final int NULL_POINTER_ERROR
OTA null pointer error code

See Also:
Constant Field Values
Constructor Detail

OTAException

public OTAException(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 a specific exception type from OTA API list

OTAException

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

Parameters:
e - the exception to use as an error message reference
errorCode - error code of specific exception type from OTA API list

OTAException

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

Parameters:
errorCode - error code of a specific exception type from OTA API list.

OTAException

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

Parameters:
errorMessage - error message to be used.

OTAException

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

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