]> git.giacomolli.uk - onehouse/blob - driver/m31/device_error.go
Preserve separate Modbus phase timeouts
[onehouse] / driver / m31 / device_error.go
1 package m31
2
3 // deviceError selects reconnect recovery for a physical transport or feedback
4 // failure. Publication and cleanup failures return to the framework runner.
5 type deviceError struct {
6 err error
7 }
8
9 func (f *deviceError) Error() string {
10 return f.err.Error()
11 }
12
13 func (f *deviceError) Unwrap() error {
14 return f.err
15 }