org.relayirc.swingutil
Class ErrorUtils

java.lang.Object
  |
  +--org.relayirc.swingutil.ErrorUtils

public class ErrorUtils
extends java.lang.Object

A simple error/exception display dialog.

Version:
$Revision: 1.1.2.4 $

The contents of this file are subject to the Mozilla Public License Version 1.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.mozilla.org/MPL/

Original Code: Relay-JFC Chat Client
Initial Developer: David M. Johnson
Contributor(s): No contributors to this file
Copyright (C) 1997-2000 by David M. Johnson
All Rights Reserved.
Author:
David M. Johnson

Constructor Summary
ErrorUtils()
           
 
Method Summary
static void displayErrorMessage(javax.swing.JFrame frame, java.lang.String title, java.lang.String shortDesc)
          Error message that shows only a short description string.
static void displayErrorMessage(javax.swing.JFrame frame, java.lang.String title, java.lang.String shortDesc, java.lang.String longDesc)
          Error message that shows short and long description strings.
static void displayErrorMessage(javax.swing.JFrame frame, java.lang.String title, java.lang.String shortDesc, java.lang.Throwable ex)
          Error message for an Exception object.
static void setUseDialog(boolean usedlg)
          A static method enable the dialog for all ErrorDlg instances
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ErrorUtils

public ErrorUtils()
Method Detail

displayErrorMessage

public static void displayErrorMessage(javax.swing.JFrame frame,
                                       java.lang.String title,
                                       java.lang.String shortDesc,
                                       java.lang.Throwable ex)
Error message for an Exception object.

displayErrorMessage

public static void displayErrorMessage(javax.swing.JFrame frame,
                                       java.lang.String title,
                                       java.lang.String shortDesc,
                                       java.lang.String longDesc)
Error message that shows short and long description strings.

displayErrorMessage

public static void displayErrorMessage(javax.swing.JFrame frame,
                                       java.lang.String title,
                                       java.lang.String shortDesc)
Error message that shows only a short description string.

setUseDialog

public static void setUseDialog(boolean usedlg)
A static method enable the dialog for all ErrorDlg instances