/*
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
*
* under the terms of the GNU General Public License version 2 only, as
* published by the Free Software Foundation. Oracle designates this
* particular file as subject to the "Classpath" exception as provided
* by Oracle in the LICENSE file that accompanied this code.
*
* This code is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
* version 2 for more details (a copy is included in the LICENSE file that
* accompanied this code).
*
* You should have received a copy of the GNU General Public License version
* 2 along with this work; if not, write to the Free Software Foundation,
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
*
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
* or visit www.oracle.com if you need additional information or have any
* questions.
*/
/**
* Used to set the Windows error mode at VM initialization time.
* <p>
* The error mode decides whether the system will handle specific types of serious errors
* or whether the process will handle them.
*
* @since 1.6
*/
public class Win32ErrorMode {
// The system does not display the critical-error-handler message box. Instead,
// the system sends the error to the calling process.
// The system does not display the general-protection-fault message box. This flag should
// only be set by debugging applications that handle general protection (GP) faults themselves
// with an exception handler.
// The system automatically fixes memory alignment faults and makes them invisible
// to the application. It does this for the calling process and any descendant processes.
// The system does not display a message box when it fails to find a file. Instead,
// the error is returned to the calling process.
private Win32ErrorMode() {
}
/**
* Invoke at VM initialization time to disable the critical error message box.
* <p>
* The critial error message box is disabled unless the system property
* <tt>sun.io.allowCriticalErrorMessageBox</tt> is set to something other than
* <code>false</code>. This includes the empty string.
* <p>
* This method does nothing if invoked after VM and class library initialization
* has completed.
*/
public static void initialize() {
}
}
}
// Win32 SetErrorMode
}