Class ErrorDisplayDialog
- java.lang.Object
-
- org.glassfish.appclient.client.jws.boot.ErrorDisplayDialog
-
public class ErrorDisplayDialog extends Object
Displays errors detected after Java Web Start has launched the Java Web Start-aware ACC but before the developer's client has launched. Such errors would normally go to the Java Web Start trace file or the Java Console (if either is enabled) but by default neither of those is turned on, with the result that the end-user has no information about such errors. The client would simply never start.- Author:
- tjquinn
-
-
Constructor Summary
Constructors Constructor Description ErrorDisplayDialog()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static void
showErrors(Throwable t, ResourceBundle rb)
Displays a dialog box reporting an error, listing the stack trace in a text box and allowing the user to copy the stack trace to the platform's clipboard before dismissing the dialog box.static void
showUserError(UserError ue, ResourceBundle rb)
Displays a kinder, gentler display for user errors - ones that normally a user could correct.
-
-
-
Method Detail
-
showUserError
public static void showUserError(UserError ue, ResourceBundle rb)
Displays a kinder, gentler display for user errors - ones that normally a user could correct. This is not typically user-fixable in a Java Web Start launch environment, but the nature of the error still does not call for a stack trace.- Parameters:
ue
- UserError to be displayedrb
- ResourceBundle from which to retrieve i18n strings
-
showErrors
public static void showErrors(Throwable t, ResourceBundle rb)
Displays a dialog box reporting an error, listing the stack trace in a text box and allowing the user to copy the stack trace to the platform's clipboard before dismissing the dialog box.- Parameters:
t
- the Throwable error detected and being reportedrb
- a ResourceBundle containing localizable strings
-
-