Extend bundled exceptions
| From: | Mathieu D. | Date: | Fri, 14 Nov 2014 07:39:30 +0000 |
| Subject: | Extend bundled exceptions | ||
| Groups: | php.internals | ||
| Request: | Send a blank email to internals+get-78899@lists.php.net to get a copy of this message | ||
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