Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Need examples to show error case handling #14

Open
7 tasks
marcoscaceres opened this issue Nov 2, 2013 · 3 comments
Open
7 tasks

Need examples to show error case handling #14

marcoscaceres opened this issue Nov 2, 2013 · 3 comments

Comments

@marcoscaceres
Copy link
Contributor

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
@JayBeavers
Copy link
Collaborator

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

@marcoscaceres
Copy link
Contributor Author

Oki, captured above as todo.

@reillyeon
Copy link
Collaborator

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants