Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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

Search: