public class ZCLException extends ZigBeeException
Modifier and Type | Field and 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.
|
errorCode, OSGI_EXISTING_ID, OSGI_MULTIPLE_HOSTS, TIMEOUT, UNKNOWN_ERROR, zigBeeErrorCode
Constructor and Description |
---|
ZCLException(int errorCode,
int zigBeeErrorCode,
String errorDesc)
|
ZCLException(int errorCode,
String errorDesc)
Creates a ZCLException containing a specific
errorCode . |
ZCLException(String errorDesc)
Creates a ZCLException containing only a description, but no
error codes.
|
getErrorCode, getZigBeeErrorCode, hasZigBeeErrorCode
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public static final int SUCCESS
public static final int FAILURE
public static final int MALFORMED_COMMAND
public static final int CLUSTER_COMMAND_NOT_SUPPORTED
public static final int GENERAL_COMMAND_NOT_SUPPORTED
public static final int MANUF_CLUSTER_COMMAND_NOT_SUPPORTED
public static final int MANUF_GENERAL_COMMAND_NOT_SUPPORTED
public static final int INVALID_FIELD
public static final int UNSUPPORTED_ATTRIBUTE
public static final int INVALID_VALUE
public static final int READ_ONLY
public static final int INSUFFICIENT_SPACE
public static final int DUPLICATE_EXISTS
public static final int NOT_FOUND
public static final int UNREPORTABLE_TYPE
public static final int INVALID_DATA_TYPE
public static final int HARDWARE_FAILURE
public static final int SOFTWARE_FAILURE
public static final int CALIBRATION_ERROR
public ZCLException(String errorDesc)
ZigBeeException.getErrorCode()
and
ZigBeeException.getZigBeeErrorCode()
methods return the ZigBeeException.UNKNOWN_ERROR
constant.errorDesc
- exception error description.public ZCLException(int errorCode, String errorDesc)
errorCode
. Using this constructor with errorCode
set to
ZigBeeException.UNKNOWN_ERROR
is equivalent to call
ZCLException(String)
.errorCode
- One of the error codes defined in this interface or
ZigBeeException.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 the ZCLException(int, int, String)
constructor, passing ZigBeeException.UNKNOWN_ERROR
as first parameter and
the native ZigBee error as the second.errorDesc
- An error description which explain the type of problem.public ZCLException(int errorCode, int zigBeeErrorCode, String errorDesc)
errorCode
or zigBeeErrorCode
. Using this constructor with
both the errorCode
and zigBeeErrorCode
set to
ZigBeeException.UNKNOWN_ERROR
is equivalent to call
ZCLException(String)
.errorCode
- One of the error codes defined in this interface or
ZigBeeException.UNKNOWN_ERROR
the actual error is not covered in this
interface. In this case the zigBeeErrorCode
parameter must
be the actual status code returned by the ZigBee stack.zigBeeErrorCode
- The actual ZCL status code or
ZigBeeException.UNKNOWN_ERROR
if this status is unknown.errorDesc
- An error description which explain the type of problem.Copyright © Contributors to the Eclipse Foundation Licensed under the Eclipse Foundation Specification License – v1.0