att.grappa
Class ExceptionDisplay

java.lang.Object
  extended by att.grappa.ExceptionDisplay

public class ExceptionDisplay
extends java.lang.Object

A class for displaying exception information in a pop-up frame. As a convenience, an instance exists as a static member of the Grappa class.

Version:
1.2, ; Copyright 1996 - 2010 by AT&T Corp.
Author:
John Mocenigo, Research @ AT&T Labs
See Also:
Grappa.displayException(java.lang.Exception), Grappa.displayException(java.lang.Exception,java.lang.String)

Constructor Summary
ExceptionDisplay(java.lang.String title)
          Creates an instance of the class for displaying exceptions.
 
Method Summary
 void displayException(java.lang.Exception ex)
          Pops up the frame and displays information on the supplied exception.
 void displayException(java.lang.Exception ex, java.lang.String msg)
          Pops up the frame and displays information on the supplied exception.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExceptionDisplay

public ExceptionDisplay(java.lang.String title)
Creates an instance of the class for displaying exceptions.

Parameters:
title - the title for the pop-up frame
Method Detail

displayException

public void displayException(java.lang.Exception ex)
Pops up the frame and displays information on the supplied exception. Initially, a text area displays the message associated with the exception. By pressing a button, an end-user can view a stack trace as well.

Parameters:
ex - the exception about which informtaion is to be displayed.

displayException

public void displayException(java.lang.Exception ex,
                             java.lang.String msg)
Pops up the frame and displays information on the supplied exception. Initially, a text area displays the supplied string followed on the next line by the message associated with the exception. By pressing a button, an end-user can view a stack trace as well.

Parameters:
ex - the exception about which informtaion is to be displayed.


Grappa 1.2