IO exception handling in stdlib
Open
area:cil-interop
area:standard-support
area:stdlib
good-first-issue
hacktoberfest
kind:feature
status:help-wanted
- Dominant language
- C#
- Stars
- 451
- Forks
- 49
- Avg merge
- 13h 59m
- Merged PRs (30d)
- 6
Description
Certain stdlib functions are documented to return various error codes. For example, `putc` should return `EOF` in case an error occurs.
But how could it signal the exact exception kind, and exception information?
Ideally, I'd like to store it somewhere together with the last error code, and expose for the user program if possible.
We should check what the standard says on error codes and how errors generally behave, and invent a similarly-behaving extension that exposes the structured exception information.
See `// TODO[#154]` in the code when implementing this.
Contributor guide
Assessment
This issue has not been assessed yet.