Hacker News new | ask | show | jobs
by YATA0 1574 days ago
That is manually throwing an exception if the file doesn't exist.

C++ stdlib does not throw an exception if a file does not exist. I agree with this philosophy because files not existing isn't an exceptional case.