Example #1
0
 public static function defaultHandler(\Exception $exception)
 {
     global $__jpg_OldHandler;
     if ($exception instanceof JpGraphException) {
         $exception->Stroke();
     } else {
         // Restore old handler
         if ($__jpg_OldHandler !== NULL) {
             set_exception_handler($__jpg_OldHandler);
         }
         throw $exception;
     }
 }