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 int
CALIBRATION_ERROR
ZCL Calibration Error error code.static int
CLUSTER_COMMAND_NOT_SUPPORTED
ZCL Cluster Command Not Supported error code.static int
DUPLICATE_EXISTS
ZCL Duplicate Exists error code.static int
FAILURE
ZCL Failure error code.static int
GENERAL_COMMAND_NOT_SUPPORTED
ZCL General Command Not Supported error code.static int
HARDWARE_FAILURE
HARDWARE_FAILURE - in this case, an additional exception describing the problem can be nested.static int
INSUFFICIENT_SPACE
ZCL Insufficient Space error code.static int
INVALID_DATA_TYPE
ZCL Invalid Data Type error code.static int
INVALID_FIELD
ZCL Invalid Field error code.static int
INVALID_VALUE
ZCL Invalid Value error code.static int
MALFORMED_COMMAND
ZCL Malformed Command error code.static int
MANUF_CLUSTER_COMMAND_NOT_SUPPORTED
ZCL Manuf Cluster Command Not Supported error code.static int
MANUF_GENERAL_COMMAND_NOT_SUPPORTED
ZCL Manuf General Command Not Supported error code.static int
NOT_FOUND
ZCL Not Found error code.static int
READ_ONLY
ZCL Read Only error code.static int
SOFTWARE_FAILURE
Software Failure error code - in this case, an additional exception describing the problem can be nested.static int
SUCCESS
ZCL Success error code.static int
UNREPORTABLE_TYPE
Unreportable Type error code.static int
UNSUPPORTED_ATTRIBUTE
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
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_ERROR
constant.- Parameters:
errorDesc
- exception error description.
-
ZCLException
public ZCLException(int errorCode, java.lang.String errorDesc)
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
public ZCLException(int errorCode, int zigBeeErrorCode, java.lang.String errorDesc)
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.
-
-