|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.chorem.lima.util.ErrorHelper
public class ErrorHelper
Error helper. Used to easily switch real exception interface. Currently used : swingx.
| Constructor Summary | |
|---|---|
ErrorHelper()
|
|
| Method Summary | |
|---|---|
protected String |
formatMessage(String category,
String content)
|
void |
reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo)
|
static void |
showErrorDialog(Component parent,
String message,
Throwable cause)
Display a user friendly error frame. |
static void |
showErrorDialog(String message)
Display a user friendly error frame. |
static void |
showErrorDialog(String message,
Throwable cause)
Display a user friendly error frame. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ErrorHelper()
| Method Detail |
|---|
public static void showErrorDialog(Component parent,
String message,
Throwable cause)
parent - parent componentmessage - message for usercause - exception causepublic static void showErrorDialog(String message)
message - message for user
public static void showErrorDialog(String message,
Throwable cause)
message - message for usercause - exception cause
public void reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo)
throws NullPointerException
reportError in interface org.jdesktop.swingx.error.ErrorReporterNullPointerException
protected String formatMessage(String category,
String content)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||