| java.lang.Object jimm.datavision.ErrorHandler
ErrorHandler | public class ErrorHandler (Code) | | This class provides static methods for displaying error messages.
It displays error messages to System.err. When the GUI is being used
it displays error messages in dialog boxes as well.
The only shortcoming is that you have to explicitly tell this class
whether to use the GUI or not.
This class is also used by other parts of the system to determine
if the report is being run with or without a GUI.
author: Jim Menard, jimm@io.com |
Method Summary | |
public static void | error(String message) Displays an error message. | public static void | error(String message, Throwable t) Displays an error message and an exception (actually a
Throwable ) Both arguments are optionally null . | public static void | error(String message, String windowTitle) Displays an error message with the given window title. | public static void | error(Throwable t) Displays an exception (actually a Throwable ). | public static void | error(Throwable t, String windowTitle) Displays an error message and an exception (actually a
Throwable ) with the given window title. | public static void | error(String message, Throwable t, String windowTitle) Displays an error message and an exception (actually a
Throwable ) with the given window title. | public static void | useGUI(boolean b) Tells the error handler routines whether to display error messages
in dialog boxes or not. | public static boolean | usingGUI() Returns true if we've been told to use the GUI. |
MAX_MESSAGE_WIDTH | final protected static int MAX_MESSAGE_WIDTH(Code) | | |
useGUI | protected static boolean useGUI(Code) | | |
error | public static void error(String message)(Code) | | Displays an error message.
Parameters: message - the error message; may be null ,but that would be rather silly |
error | public static void error(String message, Throwable t)(Code) | | Displays an error message and an exception (actually a
Throwable ) Both arguments are optionally null .
Parameters: message - the error message; may be null Parameters: t - a throwable; may be null |
error | public static void error(String message, String windowTitle)(Code) | | Displays an error message with the given window title. Both
arguments are optionally null .
Parameters: message - the error message; may be null Parameters: windowTitle - a string to use as the dialog title; may benull |
error | public static void error(Throwable t)(Code) | | Displays an exception (actually a Throwable ). It may
be null , but that would be rather silly.
Parameters: t - a throwable; may be null |
error | public static void error(Throwable t, String windowTitle)(Code) | | Displays an error message and an exception (actually a
Throwable ) with the given window title. All three
arguments are optionally null .
Parameters: t - a throwable; may be null Parameters: windowTitle - a string to use as the dialog title; may benull |
error | public static void error(String message, Throwable t, String windowTitle)(Code) | | Displays an error message and an exception (actually a
Throwable ) with the given window title. All three
arguments are optionally null .
Parameters: message - the error message; may be null Parameters: t - a throwable; may be null Parameters: windowTitle - a string to use as the dialog title; may benull |
useGUI | public static void useGUI(boolean b)(Code) | | Tells the error handler routines whether to display error messages
in dialog boxes or not.
Parameters: b - if true , all error messages will be displayedusing a dialog box in addition to being printed on System.err |
usingGUI | public static boolean usingGUI()(Code) | | Returns true if we've been told to use the GUI.
true if we've been told to use the GUI |
|
|