3 ms·
There is a long-standing principle in system design: do not check for an error condition that you cannot do anything about. It is the responsibility of whoever
by ncmncm 5y ago
There is a long-standing principle in system design: do not check for an error condition that you cannot do anything about. It is the responsibility of whoever is so equipped either to ensure that you cannot encounter such an error, or to have provided a path to deal with the error.
In C++ you can throw an exception, and count on anybody who cares to act on it, resolving the conflict.