org.geotools.swt.control
Class ExceptionMonitor

Object
  extended by ExceptionMonitor

public final class ExceptionMonitor
extends Object

Utility which enables exception messages to be displayed.

Since:
2.7
Author:
Andrea Antonello (www.hydrologis.com)

Method Summary
static void main(String[] args)
          Display a dummy exception.
static void show(Shell parent, Throwable exception)
          Displays an error message for the specified exception.
static void show(Shell parent, Throwable exception, String message)
          Displays an error message for the specified exception.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

show

public static void show(Shell parent,
                        Throwable exception)
Displays an error message for the specified exception. Note that this method can be called from any thread (not necessarily the Swing thread).

Parameters:
parent - The parent Shell.
exception - Exception which has been thrown and is to be reported to the user.

show

public static void show(Shell parent,
                        Throwable exception,
                        String message)
Displays an error message for the specified exception. Note that this method can be called from any thread (not necessarily the Swing thread).

Parameters:
parent - The parent Shell.
exception - Exception which has been thrown and is to be reported to the user.
message - Message to display.

main

public static void main(String[] args)
Display a dummy exception. This method is provided only as an easy way to test the dialog appearance from the command line.

Parameters:
args - ignored


Copyright © 1996-2014 Geotools. All Rights Reserved.