com.motorola.oem.hapi
Class A2dException

java.lang.Object
  extended by java.lang.Throwable
      extended by java.lang.Exception
          extended by com.motorola.oem.OEMException
              extended by com.motorola.oem.hapi.A2dException

public class A2dException
extends OEMException

A2d specific exception. Used through all the A2D API.


Field Summary
static int QUERY_CHANNEL_ERROR
          Failed to query a channel
static int SET_CHANNEL_ERROR
          Failed to set a channel to work on a specific mode
static int UNIT_DISABLED_ERROR
          A2d java API is disabled
 
Fields inherited from class com.motorola.oem.OEMException
CONFIGURATION_ERROR, CONSTRUCT_CLASS_ERROR, GENERAL_ERROR, ILLEGAL_PARAM_ERROR
 
Constructor Summary
A2dException(java.lang.Exception e)
          Constructs an object with the specified Exception's properties.
A2dException(int errorCode)
          Constructs an object with the specified error code.
A2dException(int errorCode, java.lang.Exception e)
          Constructs an object with the specified error code and with the specified Exception's properties.
A2dException(int errorCode, java.lang.String errorMessage)
          Constructs an object with the specified error code and error message.
A2dException(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

SET_CHANNEL_ERROR

public static final int SET_CHANNEL_ERROR
Failed to set a channel to work on a specific mode

See Also:
Constant Field Values

QUERY_CHANNEL_ERROR

public static final int QUERY_CHANNEL_ERROR
Failed to query a channel

See Also:
Constant Field Values

UNIT_DISABLED_ERROR

public static final int UNIT_DISABLED_ERROR
A2d java API is disabled

See Also:
Constant Field Values
Constructor Detail

A2dException

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

Parameters:
errorMessage - Error message to be used

A2dException

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

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

A2dException

public A2dException(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 the specific exception type from the Gpio API list

A2dException

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

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

A2dException

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

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