net.shredzone.ifish.gui
Class ExceptionDialog

java.lang.Object
  extended by net.shredzone.ifish.gui.ExceptionDialog

public class ExceptionDialog
extends Object

Informs the user about an Exception that has occured.

Version:
$Id: ExceptionDialog.java 291 2009-04-28 21:29:27Z shred $

Constructor Summary
ExceptionDialog()
           
 
Method Summary
static boolean isDebug()
          Check if the debug mode is enabled.
static void setDebug(boolean mode)
          Set the debug mode.
static void show(Component parent, String op, Exception ex)
          Show an exception dialog if an exception occured.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionDialog

public ExceptionDialog()
Method Detail

setDebug

public static void setDebug(boolean mode)
Set the debug mode. If set, a stacktrace will be shown along with the dialog.

Parameters:
mode - true: debug mode, false: standard mode

isDebug

public static boolean isDebug()
Check if the debug mode is enabled.

Returns:
true: debug mode, false: standard mode

show

public static void show(Component parent,
                        String op,
                        Exception ex)
Show an exception dialog if an exception occured.

Parameters:
parent - Parent component to be locked during dialog
op - Operation that was being performed when the exception was raised.
ex - Exception that was raised.


Copyright © 2007-2011 shredzone.org. All Rights Reserved.