Tag Info

New answers tagged


I agree with your reviewers and with @utnapistim. You can use system_error approach when you implement cross-platform things when some errors require special handling. But even in this case, it is not a good solution, but less evil solution. One more thing. When create exception hierarchy, do not make it very deep. Create only those exception classes, that ...


I think your colleague was right: you are designing your exception cases based on how simple it is to implement within the hierarchy, not based on the exception-handling needs of the client code. With one exception type and an enumeration for the error condition (your solution), if the client code needs to handle single error cases (for example, ...

Top 50 recent answers are included