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
FieldsModifier and TypeFieldDescriptionstatic final intZCL Calibration Error error code.static final intZCL Cluster Command Not Supported error code.static final intZCL Duplicate Exists error code.static final intZCL Failure error code.static final intZCL General Command Not Supported error code.static final intHARDWARE_FAILURE - in this case, an additional exception describing the problem can be nested.static final intZCL Insufficient Space error code.static final intZCL Invalid Data Type error code.static final intZCL Invalid Field error code.static final intZCL Invalid Value error code.static final intZCL Malformed Command error code.static final intZCL Manuf Cluster Command Not Supported error code.static final intZCL Manuf General Command Not Supported error code.static final intZCL Not Found error code.static final intZCL Read Only error code.static final intSoftware Failure error code - in this case, an additional exception describing the problem can be nested.static final intZCL Success error code.static final intUnreportable Type error code.static final intZCL 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
ConstructorsConstructorDescriptionZCLException(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, hasZigBeeErrorCodeMethods 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_ERRORconstant.- Parameters:
errorDesc- exception error description.
-
ZCLException
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
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.
-