Re: Exception Stack Trace

From: Date: Thu, 28 Apr 2005 23:38:37 +0000
Subject: Re: Exception Stack Trace
References: 1  Groups: php.gtk.dev 
Request: Send a blank email to php-gtk-dev+get-1218@lists.php.net to get a copy of this message
Sorry. The attachment got stripped out. Here is the code: <?php if (!extension_loaded('gtk')) { dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX); } class TestClass { public function __construct() {
    throw new Exception('TestClass __construct problem.');
} } function func0($param) { try {
    $menuItem = new GtkMenuItem('GtkMenuItem');
} catch (Exception $e) {
    echo $e->getMessage() . "\n";
    echo $e->getTraceAsString() . "\n";
} try {
    $testClass = new TestClass('TestClass');
} catch (Exception $e) {
    echo $e->getMessage() . "\n";
    echo $e->getTraceAsString() . "\n";
} } func0('func0'); ?>

« previous php.gtk.dev (#1218) next »