Package org.osgi.service.zigbee
Class APSException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.osgi.service.zigbee.ZigBeeException
org.osgi.service.zigbee.APSException
- All Implemented Interfaces:
Serializable
This exception class is specialized for the APS errors. See "Table 2.26 APS
Sub-layer Status Values" of the ZigBee specification
1_053474r17ZB_TSC-ZigBee-Specification.pdf.
- See Also:
-
Field Summary
Modifier and TypeFieldDescriptionstatic final int
A transmit request failed since the ASDU is too large and fragmentation is not supported.static final int
A received fragmented frame could not be defragmented at the current time.static final int
A received fragmented frame could not be defragmented since the device does not support fragmentation.static final int
A parameter value was out of range.static final int
An APSME-UNBIND.request failed due to the requested binding link not existing in the binding table.static final int
An APSME-REMOVE-GROUP.request has been issued with a group identifier that does not appear in the group table.static final int
A parameter value was invalid or out of range.static final int
An APSDE-DATA.request requesting acknowledged transmission failed due to no acknowledgment being received.static final int
An APSDE-DATA.request with a destination addressing mode set to 0x00 failed due to there being no devices bound to this device.static final int
An APSDE-DATA.request with a destination addressing mode set to 0x03 failed due to no corresponding short address found in the address map table.static final int
An APSDE-DATA.request with a destination addressing mode set to 0x00 failed due to a binding table not being supported on the device.static final int
An ASDU was received that was secured using a link key.static final int
An ASDU was received that was secured using a network key.static final int
An APSDE-DATA.request requesting security has resulted in an error during the corresponding security processing.static final int
A request has been executed successfully.static final int
An APSME-BIND.request or APSME.ADDGROUP.static final int
An ASDU was received without any security.static final int
An APSME-GET.request or APSMESET.Fields inherited from class org.osgi.service.zigbee.ZigBeeException
errorCode, OSGI_EXISTING_ID, OSGI_MULTIPLE_HOSTS, TIMEOUT, UNKNOWN_ERROR, zigBeeErrorCode
-
Constructor Summary
ConstructorDescriptionAPSException
(int errorCode, int zigBeeErrorCode, String errorDesc) APSException
(int errorCode, String errorDesc) Creates a APSException containing a specificerrorCode
.APSException
(String errorDesc) Creates a APSException 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 SUCCESSA request has been executed successfully.- See Also:
-
ASDU_TOO_LONG
public static final int ASDU_TOO_LONGA transmit request failed since the ASDU is too large and fragmentation is not supported.- See Also:
-
DEFRAG_DEFERRED
public static final int DEFRAG_DEFERREDA received fragmented frame could not be defragmented at the current time.- See Also:
-
DEFRAG_UNSUPPORTED
public static final int DEFRAG_UNSUPPORTEDA received fragmented frame could not be defragmented since the device does not support fragmentation.- See Also:
-
ILLEGAL_REQUEST
public static final int ILLEGAL_REQUESTA parameter value was out of range.- See Also:
-
INVALID_BINDING
public static final int INVALID_BINDINGAn APSME-UNBIND.request failed due to the requested binding link not existing in the binding table.- See Also:
-
INVALID_GROUP
public static final int INVALID_GROUPAn APSME-REMOVE-GROUP.request has been issued with a group identifier that does not appear in the group table.- See Also:
-
INVALID_PARAMETER
public static final int INVALID_PARAMETERA parameter value was invalid or out of range.- See Also:
-
NO_ACK
public static final int NO_ACKAn APSDE-DATA.request requesting acknowledged transmission failed due to no acknowledgment being received.- See Also:
-
NO_BOUND_DEVICE
public static final int NO_BOUND_DEVICEAn APSDE-DATA.request with a destination addressing mode set to 0x00 failed due to there being no devices bound to this device.- See Also:
-
NO_SHORT_ADDRESS
public static final int NO_SHORT_ADDRESSAn APSDE-DATA.request with a destination addressing mode set to 0x03 failed due to no corresponding short address found in the address map table.- See Also:
-
NOT_SUPPORTED
public static final int NOT_SUPPORTEDAn APSDE-DATA.request with a destination addressing mode set to 0x00 failed due to a binding table not being supported on the device.- See Also:
-
SECURED_LINK_KEY
public static final int SECURED_LINK_KEYAn ASDU was received that was secured using a link key.- See Also:
-
SECURED_NWK_KEY
public static final int SECURED_NWK_KEYAn ASDU was received that was secured using a network key.- See Also:
-
SECURITY_FAIL
public static final int SECURITY_FAILAn APSDE-DATA.request requesting security has resulted in an error during the corresponding security processing.- See Also:
-
TABLE_FULL
public static final int TABLE_FULLAn APSME-BIND.request or APSME.ADDGROUP. request issued when the binding or group tables, respectively, were full.- See Also:
-
UNSECURED
public static final int UNSECUREDAn ASDU was received without any security.- See Also:
-
UNSUPPORTED_ATTRIBUTE
public static final int UNSUPPORTED_ATTRIBUTEAn APSME-GET.request or APSMESET. request has been issued with an unknown attribute identifier.- See Also:
-
-
Constructor Details
-
APSException
Creates a APSException 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 an error description.
-
APSException
Creates a APSException containing a specificerrorCode
. Using this constructor witherrorCode
set toZigBeeException.UNKNOWN_ERROR
is equivalent to callAPSException(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 theAPSException(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.
-
APSException
Creates a APSException containing a specificerrorCode
orzigBeeErrorCode
. Using this constructor with both theerrorCode
andzigBeeErrorCode
set toZigBeeException.UNKNOWN_ERROR
is equivalent to callAPSException(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 APS status code orZigBeeException.UNKNOWN_ERROR
if this status is unknown.errorDesc
- An error description which explain the type of problem.
-