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
FieldsModifier and TypeFieldDescriptionstatic final intThe requested device did not exist on a device following a child descriptor request to a parent.static final intThe device does not have storage space to support the requested operation.static final intThe supplied request type was invalid.static final intThe supplied endpoint was equal to 0x00 or between 0xf1 and 0xff.static final intA child descriptor was not available following a discovery request to a parent.static final intThe unbind request was unsuccessful due to the coordinator or source device not having an entry in its binding table to unbind.static final intThe end device bind request was unsuccessful due to a failure to match any suitable clusters.static final intThe requested endpoint is not described by a simple descriptor.static final intThe permissions configuration table on the target indicates that the request is not authorized from this device.static final intThe device is not in the proper state to support the requested operation.static final intThe requested optional feature is not supported on the target device.static final intThe requested operation or transmission was completed successfully.static final intThe device does not have table space to support the operation.static final intA 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
ConstructorsConstructorDescriptionZDPException(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, 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 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_ERRORconstant.- Parameters:
errorDesc- exception error description.
-
ZDPException
Creates a ZDPException containing a specificerrorCode. Using this constructor witherrorCodeset toZigBeeException.UNKNOWN_ERRORis equivalent to callZDPException(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 theZDPException(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.
-
ZDPException
Creates a ZDPException containing a specificerrorCodeorzigBeeErrorCode. Using this constructor with both theerrorCodeandzigBeeErrorCodeset toZigBeeException.UNKNOWN_ERRORis equivalent to callZDPException(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 ZDP status code orZigBeeException.UNKNOWN_ERRORif this status is unknown.errorDesc- An error description which explain the type of problem.
-