- Is there a universally accepted classification of error handling strategies?
- What is a general term to refer to those strategies, which can be used while searching for books and articles that compare error handling strategies in different languages?
Some languages, such as C and Go, report errors via exit codes. Another common strategy is to use exceptions, which may be checked (Java) or unchecked (most other languages). I'm looking for the above answers to get a clearer understanding of different possibilities in different languages. For example: Are there ways of error handling that don't fit into these broad categories? Is the Erlang "let it crash" philosophy a subtype of exception-based error handling or is it something orthogonal? How does the Common Lisp condition system fit into the picture? How about continuations?
Simple analogy: if somebody asked me about, say, classification of programming languages, I'd say that the key words are "programming paradigms", the most popular paradigms are imperative, functional and object-oriented, and a detailed discussion can be found e.g. in the classic textbook by Peter Van Roy. I'm looking for this kind of answer about error handling. I don't even know what to search for, googling "error handling paradigms" only returns language-specific results.
EitherorMaybeand return a value indicating the failure