Union of typed operation and connection errors. Declaration errors are separate from this union.
Handle with Effect.catchTags:
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) => ...,})
Binding failures map from ModbusErrorCode. Local guards can also produce errors in this union.
ModbusErrorCode — The upstream error code enum driving this mapping.
Union of typed operation and connection errors. Declaration errors are separate from this union.
Handle with
Effect.catchTags:Binding failures map from ModbusErrorCode. Local guards can also produce errors in this union.