Bug #67740 [Opn->Nab]: SPL Exception names
| From: | danack@php.net | Date: | Wed, 25 Mar 2015 22:08:45 +0000 |
| Subject: | Bug #67740 [Opn->Nab]: SPL Exception names | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-191611@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=67740&edit=1
ID: 67740
Updated by: danack@php.net
Reported by: yosmanyga at gmail dot com
Summary: SPL Exception names
-Status: Open
+Status: Not a bug
Type: Bug
Package: SPL related
PHP Version: Irrelevant
Block user comment: N
Private report: N
New Comment:
Yes, I agree they are not that great. However they are not so misleading as to be bugs.
Previous Comments:
------------------------------------------------------------------------
[2014-08-01 23:28:21] yosmanyga at gmail dot com
Description:
------------
Most of the SPL exceptions describe themselves in the name (see http://php.net/manual/en/spl.exceptions.php):
BadFunctionCallException => Bad function call
BadMethodCallException => Bad method call
OutOfRangeException => Out of range
But what about DomainException or LengthException. It doesn't express what's the problem.
IMHO it should be called BadDomainAdhereException and InvalidLengthException respectively.
I also see a problem with InvalidArgumentException. An argument with a problem related to an out of
range or invalid length is also an invalid argument. So why InvalidArgumentException,
LengthException and OutOfRangeException are sibling?
RangeException doesn't describe the problem neither.
Regards,
Yosmany
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=67740&edit=1