Tagged Questions
4
votes
2answers
401 views
Is there a term for the error-handling anti-pattern of discarding all available info and just returning failure?
From time to time (unfortunately way too often) I have to fix code such as this:
// C++ code
bool anyOldFunction(Param p) {
try {
...
if(some_condition_here) {
handleErrorX();
return ...