This is a nice class. It will definitely help with error reporting in PHP-GTK 2 apps.
A few requests:
- Create a static method that can be called to popup the window:
try {
...
} catch (Exception $e) {
require_once 'Gtk2/ExceptionDump.php';
Gtk2_ExceptionDump::display($e);
}
- Add a way to easily set the static method as the exception handler:
public static function setAsExcpetionHandler() {
set_exception_hanlder(array('Gtk2_ExceptionDump', 'display'));
}
Scott, I uploaded 0.0.2 which allows you to set the exception handler (as well as PEAR error handler and PHP error handler), and use ::display() instead of the constructor.