private static int globalErrorHandler(long display,long event_ptr){
  if (noisyAwtHandler) {
    XlibWrapper.PrintXErrorEvent(display,event_ptr);
  }
  XErrorEvent event=new XErrorEvent(event_ptr);
  saved_error=event;
  try {
    if (current_error_handler != null) {
      return current_error_handler.handleError(display,event);
    }
 else {
      return SAVED_XERROR_HANDLER(display,event);
    }
  }
 catch (  Throwable z) {
    log.fine("Error in GlobalErrorHandler",z);
  }
  return 0;
}

private static int globalErrorHandler ( long display , long event_ptr ) { if ( noisyAwtHandler ) { XlibWrapper . PrintXErrorEvent ( display , event_ptr ) ; } XErrorEvent event = new XErrorEvent ( event_ptr ) ; saved_error = event ; try { if ( current_error_handler != null ) { return current_error_handler . handleError ( display , event ) ; } else { return SAVED_XERROR_HANDLER ( display , event ) ; } } catch ( Throwable z ) { log . fine ( "Error in GlobalErrorHandler" , z ) ; } return 0 ; }
called from the native code when an error occurs .
