note 77275 added to language.exceptions

From: Date: Wed, 22 Aug 2007 14:39:38 +0000
Subject: note 77275 added to language.exceptions
Groups: php.notes 
Request: Send a blank email to php-notes+get-129705@lists.php.net to get a copy of this message
its so so complex sintaxe... in javascript its so simple: try{ ...here codes with error... }catch(e){ ...here the exception... ..."e" is the exception var... } i can due this: variable = try{ANY_CODE}catch(e){ERROR_FUNC("#2456")} ...so simple!!! but in PHP have much dirty code... variable = try{$error = 'error';throw new Exception($error);ANY_CODE}catch(Exception $e){ERROR_FUNC("#2456")} is my opinion... ---- Server IP: 69.147.83.197 Probable Submitter: 201.40.146.226 ---- Manual Page -- http://www.php.net/manual/en/language.exceptions.php Edit -- https://master.php.net/note/edit/77275 Del: integrated -- https://master.php.net/note/delete/77275/integrated Del: useless -- https://master.php.net/note/delete/77275/useless Del: bad code -- https://master.php.net/note/delete/77275/bad+code Del: spam -- https://master.php.net/note/delete/77275/spam Del: non-english -- https://master.php.net/note/delete/77275/non-english Del: in docs -- https://master.php.net/note/delete/77275/in+docs Del: other reasons-- https://master.php.net/note/delete/77275 Reject -- https://master.php.net/note/reject/77275 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#129705) next »