fr.ifremer.coser.ui.util
Class ErrorHelper
java.lang.Object
fr.ifremer.coser.ui.util.ErrorHelper
- All Implemented Interfaces:
- org.jdesktop.swingx.error.ErrorReporter
public class ErrorHelper
- extends Object
- implements org.jdesktop.swingx.error.ErrorReporter
Error helper.
Used to easily switch real exception interface. Currently used : swingx.
- Version:
- $Revision: 505 $
Last update : $Date: 2011-01-14 15:05:29 +0100 (ven., 14 janv. 2011) $
By : $Author: chatellier $
- Author:
- chatellier
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
coserConfig
protected CoserConfig coserConfig
ErrorHelper
public ErrorHelper(CoserConfig coserConfig)
showErrorDialog
public void showErrorDialog(Component parent,
String message,
Throwable cause)
- Display a user friendly error frame.
- Parameters:
parent - parent componentmessage - message for usercause - exception cause
showErrorDialog
public void showErrorDialog(String message)
- Display a user friendly error frame.
- Parameters:
message - message for user
showErrorDialog
public void showErrorDialog(String message,
Throwable cause)
- Display a user friendly error frame.
- Parameters:
message - message for usercause - exception cause
reportError
public void reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo)
- Specified by:
reportError in interface org.jdesktop.swingx.error.ErrorReporter
formatMessage
protected String formatMessage(String category,
String content)
Copyright © 2010-2011 Ifremer. All Rights Reserved.