Top Description Fields Constructors Methods
org.osgi.service.enocean

public Class EnOceanException

extends Exception
Class Inheritance

This class contains code and definitions necessary to support common EnOcean exceptions. This class is mostly used with low-level, gateway-interacting code : EnOceanHost.
Author
$Id: f806ce3e31437f85f08236068cb50cf23cb1430e $

Field Summary

Modifier and TypeField and Description
private final int
public static final short
ESP_RET_NOT_SUPPORTED

Operation is not supported by the target device.

public static final short
ESP_RET_OPERATION_DENIED

The operation was denied.

public static final short
ESP_RET_WRONG_PARAM

One of the parameters was badly specified or missing.

public static final short
ESP_UNEXPECTED_FAILURE

Unexpected failure.

public static final short
INVALID_TELEGRAM

The message was invalid.

private static final long
public static final short
SUCCESS

SUCCESS status code.

Constructor Summary

AccessConstructor and Description
public
EnOceanException(String
exception error description
errordesc
)

Constructor for EnOceanException

public
EnOceanException(int
the error code.
errorCode
,
String
the description.
errorDesc
)

Constructor for EnOceanException

public
EnOceanException(int
An error code.
errorCode
)

Constructor for EnOceanException

Method Summary

Modifier and TypeMethod and Description
public int

Returns:

An EnOcean error code, defined by the EnOcean Forum working committee or an EnOcean vendor.
errorCode
()

Constructor for EnOceanException

Field Detail

errorCodeback to summary
private final int errorCode
ESP_RET_NOT_SUPPORTEDback to summary
public static final short ESP_RET_NOT_SUPPORTED

Operation is not supported by the target device.

ESP_RET_OPERATION_DENIEDback to summary
public static final short ESP_RET_OPERATION_DENIED

The operation was denied.

ESP_RET_WRONG_PARAMback to summary
public static final short ESP_RET_WRONG_PARAM

One of the parameters was badly specified or missing.

ESP_UNEXPECTED_FAILUREback to summary
public static final short ESP_UNEXPECTED_FAILURE

Unexpected failure.

INVALID_TELEGRAMback to summary
public static final short INVALID_TELEGRAM

The message was invalid.

serialVersionUIDback to summary
private static final long serialVersionUID

Hides java.lang.Exception.serialVersionUID.

generated

SUCCESSback to summary
public static final short SUCCESS

SUCCESS status code.

Constructor Detail

EnOceanExceptionback to summary
public EnOceanException(String errordesc)

Constructor for EnOceanException

Parameters
errordesc:String

exception error description

EnOceanExceptionback to summary
public EnOceanException(int errorCode, String errorDesc)

Constructor for EnOceanException

Parameters
errorCode:int

the error code.

errorDesc:String

the description.

EnOceanExceptionback to summary
public EnOceanException(int errorCode)

Constructor for EnOceanException

Parameters
errorCode:int

An error code.

Method Detail

errorCodeback to summary
public int errorCode()

Constructor for EnOceanException

Returns:int

An EnOcean error code, defined by the EnOcean Forum working committee or an EnOcean vendor.