public class ErrorHelper extends Object implements org.jdesktop.swingx.error.ErrorReporter
| Modifier and Type | Field and Description |
|---|---|
protected LimaConfig |
config |
| Constructor and Description |
|---|
ErrorHelper(LimaConfig config) |
| Modifier and Type | Method and Description |
|---|---|
protected String |
formatMessage(String category,
String content) |
void |
reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo) |
void |
showErrorDialog(Component parent,
String message,
Throwable cause)
Display a user friendly error frame.
|
void |
showErrorDialog(String message)
Display a user friendly error frame.
|
void |
showErrorDialog(String message,
Throwable cause)
Display a user friendly error frame.
|
protected LimaConfig config
public ErrorHelper(LimaConfig config)
public void showErrorDialog(Component parent, String message, Throwable cause)
parent - parent componentmessage - message for usercause - exception causepublic void showErrorDialog(String message)
message - message for userpublic void showErrorDialog(String message, Throwable cause)
message - message for usercause - exception causepublic void reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo)
throws NullPointerException
reportError in interface org.jdesktop.swingx.error.ErrorReporterNullPointerExceptionCopyright © 2008–2013 CodeLutin. All rights reserved.