com.motorola.oem.websession
Class WebSessionException

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.WebSessionException

public class WebSessionException
extends OEMException

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


Field Summary
static int ALREADY_EXIST_ERROR
          WS already exists error code
static int AMOUNT_OUT_OF_BOUNDS_ERROR
          WS amount exceeds maximum
static int BROWSER_SETTINGS_FAILED_ERROR
          WS browser settings update error code
static int CANNOT_BE_REMOVED_ERROR
          WS is predefined error code
static int INDEX_NOT_FOUND_ERROR
          WS index not found error code
static int INDEX_OUT_OF_BOUNDS_ERROR
          WS Index out of bound error code
static int NAME_NOT_FOUND_ERROR
          WS name not found error code
static int PLATFORM_NOT_READY_ERROR
          WS (Web Session) platform is not ready error code
static int READ_ONLY_ERROR
          WS is read only error code
static int SIM_CARD_NOT_READY_ERROR
          SIM card is not ready error code
 
Fields inherited from class com.motorola.oem.OEMException
CONFIGURATION_ERROR, CONSTRUCT_CLASS_ERROR, GENERAL_ERROR, ILLEGAL_PARAM_ERROR
 
Constructor Summary
WebSessionException(java.lang.Exception e)
          Constructs an object with the specified Exception's properties.
WebSessionException(int errorCode)
          Constructs an object with the specified error code.
WebSessionException(int errorCode, java.lang.Exception e)
          Constructs an object with the specified error code and Exception's properties.
WebSessionException(int errorCode, java.lang.String errorMessage)
          Constructs an object with the specified errorcode and error message.
WebSessionException(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

PLATFORM_NOT_READY_ERROR

public static final int PLATFORM_NOT_READY_ERROR
WS (Web Session) platform is not ready error code

See Also:
Constant Field Values

INDEX_OUT_OF_BOUNDS_ERROR

public static final int INDEX_OUT_OF_BOUNDS_ERROR
WS Index out of bound error code

See Also:
Constant Field Values

AMOUNT_OUT_OF_BOUNDS_ERROR

public static final int AMOUNT_OUT_OF_BOUNDS_ERROR
WS amount exceeds maximum

See Also:
Constant Field Values

NAME_NOT_FOUND_ERROR

public static final int NAME_NOT_FOUND_ERROR
WS name not found error code

See Also:
Constant Field Values

INDEX_NOT_FOUND_ERROR

public static final int INDEX_NOT_FOUND_ERROR
WS index not found error code

See Also:
Constant Field Values

ALREADY_EXIST_ERROR

public static final int ALREADY_EXIST_ERROR
WS already exists error code

See Also:
Constant Field Values

READ_ONLY_ERROR

public static final int READ_ONLY_ERROR
WS is read only error code

See Also:
Constant Field Values

SIM_CARD_NOT_READY_ERROR

public static final int SIM_CARD_NOT_READY_ERROR
SIM card is not ready error code

See Also:
Constant Field Values

BROWSER_SETTINGS_FAILED_ERROR

public static final int BROWSER_SETTINGS_FAILED_ERROR
WS browser settings update error code

See Also:
Constant Field Values

CANNOT_BE_REMOVED_ERROR

public static final int CANNOT_BE_REMOVED_ERROR
WS is predefined error code

See Also:
Constant Field Values
Constructor Detail

WebSessionException

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

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

WebSessionException

public WebSessionException(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 WebSession API list.

WebSessionException

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

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

WebSessionException

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

Parameters:
errorMessage - Error message to be used.

WebSessionException

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

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