Source for file udpAdapterNotifyPEARerrors.php
Documentation is available at udpAdapterNotifyPEARerrors.php
* Example that send notifications to Growl about PEAR Errors
* @author Laurent Laville <pear@laurent-laville.org>
* @author Bertrand Mansion <bmansion@mamasam.com>
* @license http://www.opensource.org/licenses/bsd-license.php BSD
* @version SVN: Release: 2.7.0
* @link http://growl.laurent-laville.org/
* @since File available since Release 2.0.0RC2
require_once 'Net/Growl/Autoload.php';
// Notification Type definitions
define('GROWL_NOTIFY_PEARERROR', 'PEAR_Error');
* PEAR_Error callback function
* @param object $error PEAR_Error instance
$error->message. ' in '. $_SERVER['SCRIPT_NAME'],
PEAR ::setErrorHandling (PEAR_ERROR_CALLBACK , 'growlErrors');
PEAR ::raiseError ("The expected error you submitted does not exist");
$pear->setErrorHandling (PEAR_ERROR_CALLBACK , 'growlErrors');
$pear->raiseError ("The expected error you submitted does not exist");
Documentation generated on Tue, 29 Jan 2013 18:30:06 +0000 by phpDocumentor 1.4.3. PEAR Logo Copyright © PHP Group 2004.
|