Class EnOceanException

  • All Implemented Interfaces:
    java.io.Serializable

    public class EnOceanException
    extends java.lang.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.
    Author:
    $Id: f806ce3e31437f85f08236068cb50cf23cb1430e $
    See Also:
    Serialized Form
    • Constructor Summary

      Constructors 
      Constructor Description
      EnOceanException​(int errorCode)
      Constructor for EnOceanException
      EnOceanException​(int errorCode, java.lang.String errorDesc)
      Constructor for EnOceanException
      EnOceanException​(java.lang.String errordesc)
      Constructor for EnOceanException
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int errorCode()
      Constructor for EnOceanException
      • Methods inherited from class java.lang.Throwable

        addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Field Detail

      • ESP_UNEXPECTED_FAILURE

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

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

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

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

        public static final short INVALID_TELEGRAM
        The message was invalid.
        See Also:
        Constant Field Values
    • Constructor Detail

      • EnOceanException

        public EnOceanException​(java.lang.String errordesc)
        Constructor for EnOceanException
        Parameters:
        errordesc - exception error description
      • EnOceanException

        public EnOceanException​(int errorCode,
                                java.lang.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 Detail

      • errorCode

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