Hacker News new | past | comments | ask | show | jobs | submit login

Code like:

  QImage image("filename.png");
is pretty common. Qt solves this by not throwing an exception and using a Null image check:

  bool QImage::isNull() const
but that throws all the extra information that an Exception could provide away.



Consider applying for YC's Summer 2025 batch! Applications are open till May 13

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: