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:
java.io.Serializable
public class ZCLException extends ZigBeeException
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.- Author:
- $Id: ff29d19156db4dbd3d6dcd4ea246cc5296bb24f0 $
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static intCALIBRATION_ERRORZCL Calibration Error error code.static intCLUSTER_COMMAND_NOT_SUPPORTEDZCL Cluster Command Not Supported error code.static intDUPLICATE_EXISTSZCL Duplicate Exists error code.static intFAILUREZCL Failure error code.static intGENERAL_COMMAND_NOT_SUPPORTEDZCL General Command Not Supported error code.static intHARDWARE_FAILUREHARDWARE_FAILURE - in this case, an additional exception describing the problem can be nested.static intINSUFFICIENT_SPACEZCL Insufficient Space error code.static intINVALID_DATA_TYPEZCL Invalid Data Type error code.static intINVALID_FIELDZCL Invalid Field error code.static intINVALID_VALUEZCL Invalid Value error code.static intMALFORMED_COMMANDZCL Malformed Command error code.static intMANUF_CLUSTER_COMMAND_NOT_SUPPORTEDZCL Manuf Cluster Command Not Supported error code.static intMANUF_GENERAL_COMMAND_NOT_SUPPORTEDZCL Manuf General Command Not Supported error code.static intNOT_FOUNDZCL Not Found error code.static intREAD_ONLYZCL Read Only error code.static intSOFTWARE_FAILURESoftware Failure error code - in this case, an additional exception describing the problem can be nested.static intSUCCESSZCL Success error code.static intUNREPORTABLE_TYPEUnreportable Type error code.static intUNSUPPORTED_ATTRIBUTEZCL 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
Constructors Constructor Description ZCLException(int errorCode, int zigBeeErrorCode, java.lang.String errorDesc)ZCLException(int errorCode, java.lang.String errorDesc)Creates a ZCLException containing a specificerrorCode.ZCLException(java.lang.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
-
-
-
-
Field Detail
-
SUCCESS
public static final int SUCCESS
ZCL Success error code.- See Also:
- Constant Field Values
-
FAILURE
public static final int FAILURE
ZCL Failure error code.- See Also:
- Constant Field Values
-
MALFORMED_COMMAND
public static final int MALFORMED_COMMAND
ZCL Malformed Command error code.- See Also:
- Constant Field Values
-
CLUSTER_COMMAND_NOT_SUPPORTED
public static final int CLUSTER_COMMAND_NOT_SUPPORTED
ZCL Cluster Command Not Supported error code.- See Also:
- Constant Field Values
-
GENERAL_COMMAND_NOT_SUPPORTED
public static final int GENERAL_COMMAND_NOT_SUPPORTED
ZCL General Command Not Supported error code.- See Also:
- Constant Field Values
-
MANUF_CLUSTER_COMMAND_NOT_SUPPORTED
public static final int MANUF_CLUSTER_COMMAND_NOT_SUPPORTED
ZCL Manuf Cluster Command Not Supported error code.- See Also:
- Constant Field Values
-
MANUF_GENERAL_COMMAND_NOT_SUPPORTED
public static final int MANUF_GENERAL_COMMAND_NOT_SUPPORTED
ZCL Manuf General Command Not Supported error code.- See Also:
- Constant Field Values
-
INVALID_FIELD
public static final int INVALID_FIELD
ZCL Invalid Field error code.- See Also:
- Constant Field Values
-
UNSUPPORTED_ATTRIBUTE
public static final int UNSUPPORTED_ATTRIBUTE
ZCL Unsupported Attribute error code.- See Also:
- Constant Field Values
-
INVALID_VALUE
public static final int INVALID_VALUE
ZCL Invalid Value error code.- See Also:
- Constant Field Values
-
READ_ONLY
public static final int READ_ONLY
ZCL Read Only error code.- See Also:
- Constant Field Values
-
INSUFFICIENT_SPACE
public static final int INSUFFICIENT_SPACE
ZCL Insufficient Space error code.- See Also:
- Constant Field Values
-
DUPLICATE_EXISTS
public static final int DUPLICATE_EXISTS
ZCL Duplicate Exists error code.- See Also:
- Constant Field Values
-
NOT_FOUND
public static final int NOT_FOUND
ZCL Not Found error code.- See Also:
- Constant Field Values
-
UNREPORTABLE_TYPE
public static final int UNREPORTABLE_TYPE
Unreportable Type error code.- See Also:
- Constant Field Values
-
INVALID_DATA_TYPE
public static final int INVALID_DATA_TYPE
ZCL Invalid Data Type error code.- See Also:
- Constant Field Values
-
HARDWARE_FAILURE
public static final int HARDWARE_FAILURE
HARDWARE_FAILURE - in this case, an additional exception describing the problem can be nested.- See Also:
- Constant Field Values
-
SOFTWARE_FAILURE
public static final int SOFTWARE_FAILURE
Software Failure error code - in this case, an additional exception describing the problem can be nested.- See Also:
- Constant Field Values
-
CALIBRATION_ERROR
public static final int CALIBRATION_ERROR
ZCL Calibration Error error code.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
ZCLException
public ZCLException(java.lang.String errorDesc)
Creates a ZCLException containing only a description, but no error codes. If issued on this exception theZigBeeException.getErrorCode()andZigBeeException.getZigBeeErrorCode()methods return theZigBeeException.UNKNOWN_ERRORconstant.- Parameters:
errorDesc- exception error description.
-
ZCLException
public ZCLException(int errorCode, java.lang.String errorDesc)Creates a ZCLException containing a specificerrorCode. Using this constructor witherrorCodeset toZigBeeException.UNKNOWN_ERRORis equivalent to callZCLException(String).- Parameters:
errorCode- One of the error codes defined in this interface orZigBeeException.UNKNOWN_ERRORif 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_ERRORas first parameter and the native ZigBee error as the second.errorDesc- An error description which explain the type of problem.
-
ZCLException
public ZCLException(int errorCode, int zigBeeErrorCode, java.lang.String errorDesc)Creates a ZCLException containing a specificerrorCodeorzigBeeErrorCode. Using this constructor with both theerrorCodeandzigBeeErrorCodeset toZigBeeException.UNKNOWN_ERRORis equivalent to callZCLException(String).- Parameters:
errorCode- One of the error codes defined in this interface orZigBeeException.UNKNOWN_ERRORthe actual error is not covered in this interface. In this case thezigBeeErrorCodeparameter must be the actual status code returned by the ZigBee stack.zigBeeErrorCode- The actual ZCL status code orZigBeeException.UNKNOWN_ERRORif this status is unknown.errorDesc- An error description which explain the type of problem.
-
-