serial icon indicating copy to clipboard operation
serial copied to clipboard

Need examples to show error case handling

Open marcoscaceres opened this issue 12 years ago • 3 comments

With changing to extending stream, it's now non-obvious how to handle error cases.

The spec is lacking examples to show how to handle:

  • [ ] disconnection
  • [ ] timeout
  • [ ] Fail to open - wrong path,
  • [ ] Fail to open - device in use,
  • [ ] Fail to open - nsufficient permissions,
  • [ ] Fail to open - improper parameters (e.g. baud rate not supported by hardware)
  • [ ] Buffer overflow / data lost due to reading too slowly

marcoscaceres avatar Nov 02 '13 12:11 marcoscaceres

Fail to open -- wrong path, device in use, insufficient permissions, improper parameters (e.g. baud rate not supported by hardware)

Buffer overflow / data lost due to reading too slowly

JayBeavers avatar Nov 06 '13 09:11 JayBeavers

Oki, captured above as todo.

marcoscaceres avatar Nov 07 '13 15:11 marcoscaceres

Examples are also needed for stream error conditions such as a break condition or parity error.

reillyeon avatar Sep 24 '18 18:09 reillyeon