Managing errors and warnings with PEAR ?

From: Date: Sat, 27 Jul 2002 16:18:17 +0000
Subject: Managing errors and warnings with PEAR ?
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-1990@lists.php.net to get a copy of this message
Hi, i am really confused on how make good error handling in pear/php and how to handle Warnings. Is there a standard way to mark an error as no fatal (e.g. a warning) and use the pear error handling for this ? What i would just like to do is to give my classes the opportunity to throw out warnings like i can using the standard php E_USER_INFO or E_USER_WARNING and have the possibility to decide in the appplication what i want to do with them, e.g. a PEAR::raiseWarning or something like that, and then have a errorhandling function in the application... I looked a bit into the DB_Warning stuff, but maybe i am just not smart enough to use it :-( So maybe someone here can help... regards, arne -- ----------------------------------------------------------------------------- Arne Bernin <arne@alamut.de> PGP/GPG fingerprint = 2D19 BA12 D7FC FA5D AE3D F998 361B 2042 3248 4050

« previous php.pear.general (#1990) next »