fr.ifremer.isisfish.ui.util
Class ErrorHelper

java.lang.Object
  extended by fr.ifremer.isisfish.ui.util.ErrorHelper
All Implemented Interfaces:
org.jdesktop.swingx.error.ErrorReporter

public class ErrorHelper
extends Object
implements org.jdesktop.swingx.error.ErrorReporter

Error helper.

Version:
$Revision: 3460 $ Last update : $Date: 2011-10-06 22:08:09 +0200 (Thu, 06 Oct 2011) $ By : $Author$
Author:
chatellier

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

ErrorHelper

public ErrorHelper()
Method Detail

showErrorDialog

public static void showErrorDialog(Component parent,
                                   String message,
                                   Throwable cause)
Display a user friendly error frame.

Parameters:
parent - parent component
message - message for user
cause - exception cause

showErrorDialog

public static void showErrorDialog(String message)
Display a user friendly error frame.

Parameters:
message - message for user

showErrorDialog

public static void showErrorDialog(String message,
                                   Throwable cause)
Display a user friendly error frame.

Parameters:
message - message for user
cause - exception cause

reportError

public void reportError(org.jdesktop.swingx.error.ErrorInfo errorInfo)
                 throws NullPointerException
Specified by:
reportError in interface org.jdesktop.swingx.error.ErrorReporter
Throws:
NullPointerException

formatMessage

protected String formatMessage(String category,
                               String content)


Copyright © 1999-2012 CodeLutin. All Rights Reserved.