KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > net > suberic > pooka > gui > ErrorHandler


1 package net.suberic.pooka.gui;
2
3 /**
4  * This defines a set of methods that can be used to display errors. Mainly
5  * it's used so that we can have a consistent interface to error handling.
6  *
7  * Note that most implementations of this class should try to make these
8  * methods thread safe; that is, if the implemenation of showError requires
9  * a dialog window to be shown on the AWTEventThread, the implementation of
10  * the ErrorHandler should be expected to handle that.
11  */

12 public interface ErrorHandler {
13
14   public void showError(String JavaDoc errorMessage);
15   
16   public void showError(String JavaDoc errorMessage, String JavaDoc title);
17   
18   public void showError(String JavaDoc errorMessage, String JavaDoc title, Exception JavaDoc e);
19   
20   public void showError(String JavaDoc errorMessage, Exception JavaDoc e);
21
22   public String JavaDoc formatMessage(String JavaDoc message);
23 }
24
Popular Tags