com.motorola.oem.hapi
Class GpioException

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

public class GpioException
extends OEMException

GPIO specific exception. Used through all the GPIO API.


Field Summary
static int READ_COUNTER_ERROR
          Failed to read counter
static int RESET_COUNTER_ERROR
          Failed to reset counter
 
Fields inherited from class com.motorola.oem.OEMException
CONFIGURATION_ERROR, CONSTRUCT_CLASS_ERROR, GENERAL_ERROR, ILLEGAL_PARAM_ERROR
 
Constructor Summary
GpioException(java.lang.Exception e)
          Constructs object from Exception properties.
GpioException(int errorCode)
          Constructs object with error code.
GpioException(int errorCode, java.lang.Exception e)
          Constructs object from Exception properties.
GpioException(int errorCode, java.lang.String errorMessage)
          Constructs object with error message.
GpioException(java.lang.String errorMessage)
          Constructs object with 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

RESET_COUNTER_ERROR

public static final int RESET_COUNTER_ERROR
Failed to reset counter

See Also:
Constant Field Values

READ_COUNTER_ERROR

public static final int READ_COUNTER_ERROR
Failed to read counter

See Also:
Constant Field Values
Constructor Detail

GpioException

public GpioException(int errorCode,
                     java.lang.String errorMessage)
Constructs object with error message.

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

GpioException

public GpioException(int errorCode,
                     java.lang.Exception e)
Constructs object from Exception properties.

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

GpioException

public GpioException(int errorCode)
Constructs object with error code.

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

GpioException

public GpioException(java.lang.String errorMessage)
Constructs object with error message.

Parameters:
errorMessage - error message to be used.

GpioException

public GpioException(java.lang.Exception e)
Constructs object from Exception properties.

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