PHP is lacking of some elemental exceptions. One obvious example would be
FileNotFoundException.

Java has a FileNotFoundException,
C# has a FileNotFoundException,
Python has a FileNotFoundError, ...

Why doesn't PHP provide a bundled FileNotFoundException or at least a more
general IOException?

Because of this shortcoming, developers must address this lack by creating
the same custom exceptions repeatedly.

This is a suggestion/open discussion, sorry if I didn't post it in the
right mailing list.

 - Mathieu

Reply via email to