Class GenDriverModbusException

  • All Implemented Interfaces:
    java.io.Serializable

    public class GenDriverModbusException
    extends java.lang.Exception
    Implements a Modbus interface driver exception. Contains Modbus exception code.
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getExceptionCode()
      Gets the numeric exception code.
      • 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
    • Constructor Detail

      • GenDriverModbusException

        public GenDriverModbusException​(java.lang.String aMessage,
                                        java.lang.Throwable aCause,
                                        int exceptionCode)
        Construct with message and inner exception.
        Parameters:
        aMessage - the error message
        aCause - the inner exception
        exceptionCode - the numeric exception code
      • GenDriverModbusException

        public GenDriverModbusException​(java.lang.String aMessage,
                                        java.lang.Throwable aCause)
        Construct with message and inner exception.
        Parameters:
        aMessage - the error message
        aCause - the inner exception
      • GenDriverModbusException

        public GenDriverModbusException​(java.lang.String aMessage,
                                        int exceptionCode)
        Construct with message.
        Parameters:
        aMessage - the error message
        exceptionCode - the numeric exception code
      • GenDriverModbusException

        public GenDriverModbusException​(java.lang.String aMessage)
        Construct with message.
        Parameters:
        aMessage - the error message
      • GenDriverModbusException

        public GenDriverModbusException​(java.lang.Throwable aCause,
                                        int exceptionCode)
        Construct with inner exception.
        Parameters:
        aCause - the inner exception
        exceptionCode - the numeric exception code
      • GenDriverModbusException

        public GenDriverModbusException​(java.lang.Throwable aCause)
        Construct with inner exception.
        Parameters:
        aCause - the inner exception
    • Method Detail

      • getExceptionCode

        public int getExceptionCode()
        Gets the numeric exception code.
        Returns:
        an integer