Package org.osgi.service.zigbee
Class ZCLException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.zigbee.ZigBeeException
org.osgi.service.zigbee.ZCLException
- All Implemented Interfaces:
Serializable
This class represents root exception for all the code related to ZigBee/ZCL.
The provided constants names, but not the values, maps to the ZCL error codes
defined in the ZCL specification.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
ZCL Calibration Error error code.static final int
ZCL Cluster Command Not Supported error code.static final int
ZCL Duplicate Exists error code.static final int
ZCL Failure error code.static final int
ZCL General Command Not Supported error code.static final int
HARDWARE_FAILURE - in this case, an additional exception describing the problem can be nested.static final int
ZCL Insufficient Space error code.static final int
ZCL Invalid Data Type error code.static final int
ZCL Invalid Field error code.static final int
ZCL Invalid Value error code.static final int
ZCL Malformed Command error code.static final int
ZCL Manuf Cluster Command Not Supported error code.static final int
ZCL Manuf General Command Not Supported error code.static final int
ZCL Not Found error code.static final int
ZCL Read Only error code.static final int
Software Failure error code - in this case, an additional exception describing the problem can be nested.static final int
ZCL Success error code.static final int
Unreportable Type error code.static final int
ZCL Unsupported Attribute error code.Fields inherited from class org.osgi.service.zigbee.ZigBeeException
errorCode, OSGI_EXISTING_ID, OSGI_MULTIPLE_HOSTS, TIMEOUT, UNKNOWN_ERROR, zigBeeErrorCode
-
Constructor Summary
ConstructorDescriptionZCLException
(int errorCode, int zigBeeErrorCode, String errorDesc) ZCLException
(int errorCode, String errorDesc) Creates a ZCLException containing a specificerrorCode
.ZCLException
(String errorDesc) Creates a ZCLException containing only a description, but no error codes. -
Method Summary
Methods inherited from class org.osgi.service.zigbee.ZigBeeException
getErrorCode, getZigBeeErrorCode, hasZigBeeErrorCode
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 int SUCCESSZCL Success error code.- See Also:
-
FAILURE
public static final int FAILUREZCL Failure error code.- See Also:
-
MALFORMED_COMMAND
public static final int MALFORMED_COMMANDZCL Malformed Command error code.- See Also:
-
CLUSTER_COMMAND_NOT_SUPPORTED
public static final int CLUSTER_COMMAND_NOT_SUPPORTEDZCL Cluster Command Not Supported error code.- See Also:
-
GENERAL_COMMAND_NOT_SUPPORTED
public static final int GENERAL_COMMAND_NOT_SUPPORTEDZCL General Command Not Supported error code.- See Also:
-
MANUF_CLUSTER_COMMAND_NOT_SUPPORTED
public static final int MANUF_CLUSTER_COMMAND_NOT_SUPPORTEDZCL Manuf Cluster Command Not Supported error code.- See Also:
-
MANUF_GENERAL_COMMAND_NOT_SUPPORTED
public static final int MANUF_GENERAL_COMMAND_NOT_SUPPORTEDZCL Manuf General Command Not Supported error code.- See Also:
-
INVALID_FIELD
public static final int INVALID_FIELDZCL Invalid Field error code.- See Also:
-
UNSUPPORTED_ATTRIBUTE
public static final int UNSUPPORTED_ATTRIBUTEZCL Unsupported Attribute error code.- See Also:
-
INVALID_VALUE
public static final int INVALID_VALUEZCL Invalid Value error code.- See Also:
-
READ_ONLY
public static final int READ_ONLYZCL Read Only error code.- See Also:
-
INSUFFICIENT_SPACE
public static final int INSUFFICIENT_SPACEZCL Insufficient Space error code.- See Also:
-
DUPLICATE_EXISTS
public static final int DUPLICATE_EXISTSZCL Duplicate Exists error code.- See Also:
-
NOT_FOUND
public static final int NOT_FOUNDZCL Not Found error code.- See Also:
-
UNREPORTABLE_TYPE
public static final int UNREPORTABLE_TYPEUnreportable Type error code.- See Also:
-
INVALID_DATA_TYPE
public static final int INVALID_DATA_TYPEZCL Invalid Data Type error code.- See Also:
-
HARDWARE_FAILURE
public static final int HARDWARE_FAILUREHARDWARE_FAILURE - in this case, an additional exception describing the problem can be nested.- See Also:
-
SOFTWARE_FAILURE
public static final int SOFTWARE_FAILURESoftware Failure error code - in this case, an additional exception describing the problem can be nested.- See Also:
-
CALIBRATION_ERROR
public static final int CALIBRATION_ERRORZCL Calibration Error error code.- See Also:
-
-
Constructor Details
-
ZCLException
Creates a ZCLException containing only a description, but no error codes. If issued on this exception theZigBeeException.getErrorCode()
andZigBeeException.getZigBeeErrorCode()
methods return theZigBeeException.UNKNOWN_ERROR
constant.- Parameters:
errorDesc
- exception error description.
-
ZCLException
Creates a ZCLException containing a specificerrorCode
. Using this constructor witherrorCode
set toZigBeeException.UNKNOWN_ERROR
is equivalent to callZCLException(String)
.- Parameters:
errorCode
- One of the error codes defined in this interface orZigBeeException.UNKNOWN_ERROR
if the actual error is not listed in this interface. In this case if the native ZigBee error code is known, it is preferred to use theZCLException(int, int, String)
constructor, passingZigBeeException.UNKNOWN_ERROR
as first parameter and the native ZigBee error as the second.errorDesc
- An error description which explain the type of problem.
-
ZCLException
Creates a ZCLException containing a specificerrorCode
orzigBeeErrorCode
. Using this constructor with both theerrorCode
andzigBeeErrorCode
set toZigBeeException.UNKNOWN_ERROR
is equivalent to callZCLException(String)
.- Parameters:
errorCode
- One of the error codes defined in this interface orZigBeeException.UNKNOWN_ERROR
the actual error is not covered in this interface. In this case thezigBeeErrorCode
parameter must be the actual status code returned by the ZigBee stack.zigBeeErrorCode
- The actual ZCL status code orZigBeeException.UNKNOWN_ERROR
if this status is unknown.errorDesc
- An error description which explain the type of problem.
-