public class ErrorMessage extends Object
This shows an error dialog to the user, and logs the exception, if any.
Constructor | Description |
---|---|
ErrorMessage() |
Modifier and Type | Method | Description |
---|---|---|
protected static JDialog |
createJDialog(Component parent) |
|
static void |
error(Component parent,
String title,
Exception e) |
|
static void |
error(Component parent,
String title,
Exception e,
String extramsg) |
|
static void |
error(Component parent,
String title,
Throwable e) |
|
static void |
error(Component parent,
String title,
Throwable e,
String extramsg) |
show an error to the user.
|
static void |
internal(Component parent,
Exception e) |
|
static void |
internal(Component parent,
String msg) |
show an error to the user.
|
static void |
internal(Component parent,
Throwable e) |
show an error to the user.
|
static void |
logException(Throwable e) |
logs an exception
|
public static void error(Component parent, String title, Throwable e, String extramsg)
parent
- Parent windowtitle
- Title of the dialoge
- Exception to get information fromextramsg
- Additional error message details to displaypublic static void internal(Component parent, Throwable e)
parent
- Parent windowe
- Exception to get information frompublic static void internal(Component parent, Exception e)
internal(Component, Throwable)
public static void internal(Component parent, String msg)
parent
- Parent windowmsg
- Message to describe to errorpublic static void logException(Throwable e)
Copyright © 2010-2018 Nikhef / Stichting FOM. All Rights Reserved.