Class EnOceanException

java.lang.Object
java.lang.Throwable
java.lang.Exception
org.osgi.service.enocean.EnOceanException
All Implemented Interfaces:
Serializable

public class EnOceanException extends Exception
This class contains code and definitions necessary to support common EnOcean exceptions. This class is mostly used with low-level, gateway-interacting code : EnOceanHost.
See Also:
  • Field Details

    • SUCCESS

      public static final short SUCCESS
      SUCCESS status code.
      See Also:
    • ESP_UNEXPECTED_FAILURE

      public static final short ESP_UNEXPECTED_FAILURE
      Unexpected failure.
      See Also:
    • ESP_RET_NOT_SUPPORTED

      public static final short ESP_RET_NOT_SUPPORTED
      Operation is not supported by the target device.
      See Also:
    • ESP_RET_WRONG_PARAM

      public static final short ESP_RET_WRONG_PARAM
      One of the parameters was badly specified or missing.
      See Also:
    • ESP_RET_OPERATION_DENIED

      public static final short ESP_RET_OPERATION_DENIED
      The operation was denied.
      See Also:
    • INVALID_TELEGRAM

      public static final short INVALID_TELEGRAM
      The message was invalid.
      See Also:
  • Constructor Details

    • EnOceanException

      public EnOceanException(String errordesc)
      Constructor for EnOceanException
      Parameters:
      errordesc - exception error description
    • EnOceanException

      public EnOceanException(int errorCode, String errorDesc)
      Constructor for EnOceanException
      Parameters:
      errorCode - the error code.
      errorDesc - the description.
    • EnOceanException

      public EnOceanException(int errorCode)
      Constructor for EnOceanException
      Parameters:
      errorCode - An error code.
  • Method Details

    • errorCode

      public int errorCode()
      Constructor for EnOceanException
      Returns:
      An EnOcean error code, defined by the EnOcean Forum working committee or an EnOcean vendor.