@flux-control/effect-modbus-rs
    Preparing search index...

    Class ModbusExceptionError

    Error originating from a Modbus protocol exception response.

    Mapped from ModbusErrorCode.EXCEPTION via modbus-rs. The exception field holds the Modbus exception code (e.g. 1 = ILLEGAL_FUNCTION, 2 = ILLEGAL_DATA_ADDRESS, 3 = ILLEGAL_DATA_VALUE).

    ModbusErrorCode.EXCEPTION — modbus-rs error code that triggers this error.

    Hierarchy

    • YieldableError<this> & {} & Readonly<
          { cause: Error; exception: number; message: string },
      >
      • ModbusExceptionError
    Index
    • Parameters

      • args: { cause: Error; exception: number; message: string }
        • Readonlycause: Error

          Original error thrown by modbus-rs.

        • Readonlyexception: number

          Parsed Modbus exception code extracted from the error message.

        • Readonlymessage: string

          Error message from the underlying modbus-rs error.

      Returns ModbusExceptionError

    cause: Error

    The cause of the error.

    exception: number

    Parsed Modbus exception code extracted from the error message.

    message: string

    Error message from the underlying modbus-rs error.