Class AsyncModbusFailure<R>

java.lang.Object
org.openhab.core.io.transport.modbus.AsyncModbusFailure<R>

@NonNullByDefault public class AsyncModbusFailure<R> extends Object
Encapsulates result of modbus read operations
Author:
Nagy Attila Gabor - Initial contribution
  • Constructor Details

    • AsyncModbusFailure

      public AsyncModbusFailure(R request, Exception cause)
  • Method Details

    • getRequest

      public R getRequest()
      Get request matching this response
      Returns:
      request object
    • getCause

      public Exception getCause()
      Get cause of error
      Returns:
      exception representing error
    • toString

      public String toString()
      Overrides:
      toString in class Object