Package org.osgi.service.enocean
Class EnOceanException
java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osgi.service.enocean.EnOceanException
- All Implemented Interfaces:
Serializable
This class contains code and definitions necessary to support common EnOcean
exceptions. This class is mostly used with low-level, gateway-interacting
code : EnOceanHost.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final short
Operation is not supported by the target device.static final short
The operation was denied.static final short
One of the parameters was badly specified or missing.static final short
Unexpected failure.static final short
The message was invalid.static final short
SUCCESS status code. -
Constructor Summary
ConstructorDescriptionEnOceanException
(int errorCode) Constructor for EnOceanExceptionEnOceanException
(int errorCode, String errorDesc) Constructor for EnOceanExceptionEnOceanException
(String errordesc) Constructor for EnOceanException -
Method Summary
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Field Details
-
SUCCESS
public static final short SUCCESSSUCCESS status code.- See Also:
-
ESP_UNEXPECTED_FAILURE
public static final short ESP_UNEXPECTED_FAILUREUnexpected failure.- See Also:
-
ESP_RET_NOT_SUPPORTED
public static final short ESP_RET_NOT_SUPPORTEDOperation is not supported by the target device.- See Also:
-
ESP_RET_WRONG_PARAM
public static final short ESP_RET_WRONG_PARAMOne of the parameters was badly specified or missing.- See Also:
-
ESP_RET_OPERATION_DENIED
public static final short ESP_RET_OPERATION_DENIEDThe operation was denied.- See Also:
-
INVALID_TELEGRAM
public static final short INVALID_TELEGRAMThe message was invalid.- See Also:
-
-
Constructor Details
-
EnOceanException
Constructor for EnOceanException- Parameters:
errordesc
- exception error description
-
EnOceanException
Constructor for EnOceanException- Parameters:
errorCode
- the error code.errorDesc
- the description.
-
EnOceanException
public EnOceanException(int errorCode) Constructor for EnOceanException- Parameters:
errorCode
- An error code.
-
-
Method Details
-
errorCode
public int errorCode()Constructor for EnOceanException- Returns:
- An EnOcean error code, defined by the EnOcean Forum working committee or an EnOcean vendor.
-