Union of all typed Modbus errors emitted by this library.
Handle with Effect.catchTags:
Effect.catchTags(client.readHoldingRegisters({ address: 0, quantity: 10 }), { ModbusTimeoutError: () => ..., ModbusTransportError: () => ..., ModbusExceptionError: (e) => ...,}) Copy
Effect.catchTags(client.readHoldingRegisters({ address: 0, quantity: 10 }), { ModbusTimeoutError: () => ..., ModbusTransportError: () => ..., ModbusExceptionError: (e) => ...,})
Each variant maps to a specific ModbusErrorCode from modbus-rs.
modbus-rs
ModbusErrorCode — The upstream error code enum driving this mapping.
Union of all typed Modbus errors emitted by this library.
Handle with Effect.catchTags:
Each variant maps to a specific ModbusErrorCode from
modbus-rs.