3 ms·
I also think the arguments against using exceptions are flawed. For example it's a common pattern to use a supervisor that catches exceptions and depending on c
by bad_user 12y ago
I also think the arguments against using exceptions are flawed. For example it's a common pattern to use a supervisor that catches exceptions and depending on context and severity, to log the errors, to restart the guilty component, to send an error report, to fallback to something else, to crash the whole process and so on.
The idea being that unexpected errors happen and you need to react to them in some way, preferably without relying on the developer to do something for everything potentially error prone that he does, because we can't anticipate everything bad that can happen, yet in spite of this, we can make the system resilient to errors.