note 112551 added to exception.getcode
| From: | talksonweb at gmail dot com | Date: | Fri, 28 Jun 2013 15:23:59 +0000 |
| Subject: | note 112551 added to exception.getcode | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-195389@lists.php.net to get a copy of this message | ||
The exception code can be used to categorize your errors. If you're wondering what the
exception code can be used for, read on below.
Let's say each time your application isn't able to connect to the database, you can save
the error message under the error/exception code 214. At the end of the month, you can do a quick
search on the error number '214' and find out how many times this error occurred. This
makes life easier. Also, the error/exception message will give you details into what happened.
The point is to use both the exception message and code. It's helpful in the long run.
Note: I added this note, because I was confused earlier as to the purpose of the exception code and
it's use.
----
Server IP: 69.147.83.199
Probable Submitter: 182.185.160.82
----
Manual Page -- http://php.net/manual/en/exception.getcode.php
Edit -- https://master.php.net/note/edit/112551
Del: integrated -- https://master.php.net/note/delete/112551/integrated
Del: useless -- https://master.php.net/note/delete/112551/useless
Del: bad code -- https://master.php.net/note/delete/112551/bad+code
Del: spam -- https://master.php.net/note/delete/112551/spam
Del: non-english -- https://master.php.net/note/delete/112551/non-english
Del: in docs -- https://master.php.net/note/delete/112551/in+docs
Del: other reasons-- https://master.php.net/note/delete/112551
Reject -- https://master.php.net/note/reject/112551
Search -- https://master.php.net/manage/user-notes.php