FreeHEP API
Version current

org.freehep.swing
Class ErrorDialog

java.lang.Object
  extended byorg.freehep.swing.ErrorDialog

public class ErrorDialog
extends Object

A utility for displaying errors in dialogs.

Author:
Tony Johnson
Source Code:
ErrorDialog.java

Nested Class Summary
static class ErrorDialog.ErrorDetailsDialog
           
 
Method Summary
static void showErrorDialog(Component source, Object message, Throwable detail)
          Creates a dialog which will display a message to the user.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

showErrorDialog

public static void showErrorDialog(Component source,
                                   Object message,
                                   Throwable detail)
Creates a dialog which will display a message to the user. If a Throwable is provided the user can click the "Details" button to get a full stack trace, including any nested errors ("caused by").

Parameters:
source - The parent component to be used for the dialog (may be null)
message - The message to be displayed in the dialog
detail - The exception that caused the error (may be null)

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.