Comments for "Gtk2_ExceptionDump"

» Submit Your Comment
Comments are only accepted during the "Proposal" phase. This proposal is currently in the "Finished" phase.
» Comments
  • Scott Mattocks  [2006-07-28 12:32 UTC]

    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'));
    }
  • Christian Weiske  [2006-07-31 10:48 UTC]

    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.