Re: Pear Error Handling

From: Date: Thu, 13 Dec 2001 10:27:41 +0000
Subject: Re: Pear Error Handling
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-600@lists.php.net to get a copy of this message
Limbourg Arnaud wrote: > > Hello, > > I have a little question regarding the "code" parameter in the class > PEAR_Error, is internal to PEAR or is it up to the class which uses it to do > its own mapping ? > It's for your class. See: function PEAR_Error($message = 'unknown error', $code = null, $mode = null, $options = null, $userinfo = null) $message: is the error message that will get the user $code: the error code of your error message (for example useful when your class is used by others or want to build the msg from the code, etc) $mode & $options: the type of action you want to take when the error is raisen $userinfo: extra debug code (explained error, native error, help, etc) normally only visible for the developer while debuging the app. Tomas V.V.Cox

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