6447N/A * Copyright (c) 2013, Oracle and/or its affiliates. All rights reserved. 6447N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 6447N/A * This code is free software; you can redistribute it and/or modify it 6447N/A * under the terms of the GNU General Public License version 2 only, as 6447N/A * published by the Free Software Foundation. Oracle designates this 6447N/A * particular file as subject to the "Classpath" exception as provided 6447N/A * by Oracle in the LICENSE file that accompanied this code. 6447N/A * This code is distributed in the hope that it will be useful, but WITHOUT 6447N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or 6447N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License 6447N/A * version 2 for more details (a copy is included in the LICENSE file that 6447N/A * You should have received a copy of the GNU General Public License version 6447N/A * 2 along with this work; if not, write to the Free Software Foundation, 6447N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. 6447N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA 6447N/A * or visit www.oracle.com if you need additional information or have any 6447N/A * This class contains code of the global toolkit error handler, exposes static 6447N/A * methods which allow to set and unset synthetic error handlers. 6447N/A * The connection to X11 window server. 6447N/A * Error handler at the moment of {@code XErrorHandlerUtil} initialization. 6447N/A * XErrorEvent being handled. 6447N/A * Current error handler or null if no error handler is set. 6447N/A * Value of sun.awt.noisyerrorhandler system property. 6447N/A * The flag indicating that {@code init} was called already. 6447N/A * Guarantees that no instance of this class can be created. 6447N/A * Sets the toolkit global error handler, stores the connection to X11 server, 6447N/A * which will be used during an error handling process. This method is called 6447N/A * once from {@code awt_init_Display} function defined in {@code awt_GraphicsEnv.c} 6447N/A * file immediately after the connection to X11 window server is opened. 6447N/A * @param display the connection to X11 server which should be stored 6447N/A * Sets a synthetic error handler. Must be called with the acquired AWT lock. 6447N/A * @param handler the synthetic error handler to set 6447N/A * Unsets a current synthetic error handler. Must be called with the acquired AWT lock. 6447N/A // Wait until all requests are processed by the X server 6447N/A // and only then uninstall the error handler. 6447N/A * Should be called under LOCK. 6447N/A // Default XErrorHandler may just terminate the process. Don't call it. 6447N/A // return XlibWrapper.CallErrorHandler(saved_error_handler, display, error.pData); 6447N/A * Called from the native code when an error occurs.