note 77275 deleted from language.exceptions by nlopess

From: Date: Sat, 01 Sep 2007 12:08:18 +0000
Subject: note 77275 deleted from language.exceptions by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-130019@lists.php.net to get a copy of this message
Note Submitter: WOWA ---- 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...

« previous php.notes (#130019) next »