note 103954 deleted from class.invalidargumentexception by danbrown
| From: | danbrown@php.net | Date: | Fri, 13 May 2011 14:53:56 +0000 |
| Subject: | note 103954 deleted from class.invalidargumentexception by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179689@lists.php.net to get a copy of this message | ||
Note Submitter: melkorm at gmail dot com
----
"In my opinion this exception is invaluable for validating arguments- for example providing
strict typing a la C:"
You are wrong, exception which You are talking about is "UnexpectedValueException".
InvalidArgumentException extends LogicException which says that You have bug in your code.
The Documentation says:
"The LogicException class
Introduction
Exception that represents error in the program logic. This kind of exceptions should directly leed
to a fix in your code."