Description
Discussion thread for error handling
This issue provides a discussion space for questions or comments on the balloting of 'error handling' currently (2024-07-16 through 2024-07-21) taking place in issue #830.
Useful references:
- Errors is the current specification
- The spec should not force implementations to go against their standard error handling patterns #782
- Fix #782: give implementations more flexibility in error handling #795
- Add design doc for error handling #804
- Refine error handling text #816
- 2024-07-15 discussion
- 2024-07-08 discussion
- 2024-07-01 discussion
- 2024-07-24 discussion
Some terminology:
Formatting attempt means a call to a message format implementation for a given message with a set of arguments intended for formatting.
Signal an error is a deliberately vague, generic, neutral way of referring to how an implementation registers that an error has occurred during a formatting attempt with the caller. Common signaling mechanisms include throwing exceptions, returning a value that indicates an error, setting an error flag on the formatter object, and many more.
Provide a fallback representation means that there is some way for the caller to obtain a version of the message that is partially formatted according to the rules already provided in Formatting and notably, but not exclusively, here and here
MUST and SHOULD have their normal RFC2119 / BCP14 meaning.