About
An error is an exceptional conditions that breaks the normal flow
Management
Code
- For Shell language that are based on process command, the error management is done via the Error code / exit status
- For an block, the error management is done via the exception mechanism
Message
A good error message identifies:
- the problem,
- the cause of the error
- and the solution, if possible
Doc:
Propagation
Error propagation is when an error that occurs in a block of code is propagated to its caller. This is an exception mechanism.
This is easy in a single thread application but really difficult in multi-thread.