Package org.osgi.service.zigbee
Class ZDPException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.zigbee.ZigBeeException
org.osgi.service.zigbee.ZDPException
- All Implemented Interfaces:
Serializable
This class represents root exception for all the code related to ZDP.
See Table 2.137 ZDP Enumerations Description in ZIGBEE SPECIFICATION: 1_053474r17ZB_TSC-ZigBee-Specification.pdf.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
The requested device did not exist on a device following a child descriptor request to a parent.static final int
The device does not have storage space to support the requested operation.static final int
The supplied request type was invalid.static final int
The supplied endpoint was equal to 0x00 or between 0xf1 and 0xff.static final int
A child descriptor was not available following a discovery request to a parent.static final int
The unbind request was unsuccessful due to the coordinator or source device not having an entry in its binding table to unbind.static final int
The end device bind request was unsuccessful due to a failure to match any suitable clusters.static final int
The requested endpoint is not described by a simple descriptor.static final int
The permissions configuration table on the target indicates that the request is not authorized from this device.static final int
The device is not in the proper state to support the requested operation.static final int
The requested optional feature is not supported on the target device.static final int
The requested operation or transmission was completed successfully.static final int
The device does not have table space to support the operation.static final int
A timeout has occurred with the requested operation.Fields inherited from class org.osgi.service.zigbee.ZigBeeException
errorCode, OSGI_EXISTING_ID, OSGI_MULTIPLE_HOSTS, UNKNOWN_ERROR, zigBeeErrorCode
-
Constructor Summary
ConstructorDescriptionZDPException
(int errorCode, int zigBeeErrorCode, String errorDesc) ZDPException
(int errorCode, String errorDesc) Creates a ZDPException containing a specificerrorCode
.ZDPException
(String errorDesc) Creates a ZDPException 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 SUCCESSThe requested operation or transmission was completed successfully.- See Also:
-
INV_REQUESTTYPE
public static final int INV_REQUESTTYPEThe supplied request type was invalid.- See Also:
-
DEVICE_NOT_FOUND
public static final int DEVICE_NOT_FOUNDThe requested device did not exist on a device following a child descriptor request to a parent.- See Also:
-
INVALID_EP
public static final int INVALID_EPThe supplied endpoint was equal to 0x00 or between 0xf1 and 0xff.- See Also:
-
NOT_ACTIVE
public static final int NOT_ACTIVEThe requested endpoint is not described by a simple descriptor.- See Also:
-
NOT_SUPPORTED
public static final int NOT_SUPPORTEDThe requested optional feature is not supported on the target device.- See Also:
-
TIMEOUT
public static final int TIMEOUTA timeout has occurred with the requested operation.- See Also:
-
NO_MATCH
public static final int NO_MATCHThe end device bind request was unsuccessful due to a failure to match any suitable clusters.- See Also:
-
NO_ENTRY
public static final int NO_ENTRYThe unbind request was unsuccessful due to the coordinator or source device not having an entry in its binding table to unbind.- See Also:
-
NO_DESCRIPTOR
public static final int NO_DESCRIPTORA child descriptor was not available following a discovery request to a parent.- See Also:
-
INSUFFICIENT_SPACE
public static final int INSUFFICIENT_SPACEThe device does not have storage space to support the requested operation.- See Also:
-
NOT_PERMITTED
public static final int NOT_PERMITTEDThe device is not in the proper state to support the requested operation.- See Also:
-
TABLE_FULL
public static final int TABLE_FULLThe device does not have table space to support the operation.- See Also:
-
NOT_AUTHORIZED
public static final int NOT_AUTHORIZEDThe permissions configuration table on the target indicates that the request is not authorized from this device.- See Also:
-
-
Constructor Details
-
ZDPException
Creates a ZDPException 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.
-
ZDPException
Creates a ZDPException containing a specificerrorCode
. Using this constructor witherrorCode
set toZigBeeException.UNKNOWN_ERROR
is equivalent to callZDPException(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 theZDPException(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.
-
ZDPException
Creates a ZDPException containing a specificerrorCode
orzigBeeErrorCode
. Using this constructor with both theerrorCode
andzigBeeErrorCode
set toZigBeeException.UNKNOWN_ERROR
is equivalent to callZDPException(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 ZDP status code orZigBeeException.UNKNOWN_ERROR
if this status is unknown.errorDesc
- An error description which explain the type of problem.
-