Package org.osgi.service.enocean
Class EnOceanException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- org.osgi.service.enocean.EnOceanException
-
- All Implemented Interfaces:
java.io.Serializable
public class EnOceanException extends java.lang.Exception
This class contains code and definitions necessary to support common EnOcean exceptions. This class is mostly used with low-level, gateway-interacting code : EnOceanHost.- Author:
- $Id: f806ce3e31437f85f08236068cb50cf23cb1430e $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static short
ESP_RET_NOT_SUPPORTED
Operation is not supported by the target device.static short
ESP_RET_OPERATION_DENIED
The operation was denied.static short
ESP_RET_WRONG_PARAM
One of the parameters was badly specified or missing.static short
ESP_UNEXPECTED_FAILURE
Unexpected failure.static short
INVALID_TELEGRAM
The message was invalid.static short
SUCCESS
SUCCESS status code.
-
Constructor Summary
Constructors Constructor Description EnOceanException(int errorCode)
Constructor for EnOceanExceptionEnOceanException(int errorCode, java.lang.String errorDesc)
Constructor for EnOceanExceptionEnOceanException(java.lang.String errordesc)
Constructor for EnOceanException
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
errorCode()
Constructor for EnOceanException
-
-
-
Field Detail
-
SUCCESS
public static final short SUCCESS
SUCCESS status code.- See Also:
- Constant Field Values
-
ESP_UNEXPECTED_FAILURE
public static final short ESP_UNEXPECTED_FAILURE
Unexpected failure.- See Also:
- Constant Field Values
-
ESP_RET_NOT_SUPPORTED
public static final short ESP_RET_NOT_SUPPORTED
Operation is not supported by the target device.- See Also:
- Constant Field Values
-
ESP_RET_WRONG_PARAM
public static final short ESP_RET_WRONG_PARAM
One of the parameters was badly specified or missing.- See Also:
- Constant Field Values
-
ESP_RET_OPERATION_DENIED
public static final short ESP_RET_OPERATION_DENIED
The operation was denied.- See Also:
- Constant Field Values
-
INVALID_TELEGRAM
public static final short INVALID_TELEGRAM
The message was invalid.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
EnOceanException
public EnOceanException(java.lang.String errordesc)
Constructor for EnOceanException- Parameters:
errordesc
- exception error description
-
EnOceanException
public EnOceanException(int errorCode, java.lang.String errorDesc)
Constructor for EnOceanException- Parameters:
errorCode
- the error code.errorDesc
- the description.
-
EnOceanException
public EnOceanException(int errorCode)
Constructor for EnOceanException- Parameters:
errorCode
- An error code.
-
-