note 82316 added to language.exceptions

From: Date: Sat, 05 Apr 2008 04:50:53 +0000
Subject: note 82316 added to language.exceptions
Groups: php.notes 
Request: Send a blank email to php-notes+get-137951@lists.php.net to get a copy of this message
As a response to Anonymous on 28-Dec-2007 07:25, please, remember that creating lots of MyXExtension classes is wrong if and only if your object oriented model is not well designed. One should (I even think MUST) create as many custom Exception extentions as the design needs, because every different type of exception requires (or will require, even if we haven't think about it) a different response, from showing different messages to the user, to log error messages or even kill the script. Forwarding can become confusing if you are using a big number of classes and packages, and is useless if you are using few (unless you are too lasy to write 3, 5 or 10 includes and their respective Exception classes). Remember that object orientation was created to give more semantics to the programming code so the programmer understands better what is written without having to excecute the code, so don't do things that go against that, which is the cool thing about object orientation. ---- Server IP: 69.147.83.197 Probable Submitter: 201.137.160.54 ---- Manual Page -- http://www.php.net/manual/en/language.exceptions.php Edit -- https://master.php.net/note/edit/82316 Del: integrated -- https://master.php.net/note/delete/82316/integrated Del: useless -- https://master.php.net/note/delete/82316/useless Del: bad code -- https://master.php.net/note/delete/82316/bad+code Del: spam -- https://master.php.net/note/delete/82316/spam Del: non-english -- https://master.php.net/note/delete/82316/non-english Del: in docs -- https://master.php.net/note/delete/82316/in+docs Del: other reasons-- https://master.php.net/note/delete/82316 Reject -- https://master.php.net/note/reject/82316 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#137951) next »