ilog.views.maps.beans
Class IlvExceptionMessage

java.lang.Object
  extended by ilog.views.maps.beans.IlvExceptionMessage

public class IlvExceptionMessage
extends Object

Utility class that displays a non modal user-dialog for a java exception. Example of use:

try {
   // can throw an IO Exception
   accessChannel = new RandomAccessFile(fName, "r"); 
} catch (IOException e) {
   // Display a message and return null if file cannot be opened for reading.
   new IlvExceptionMessage(e,"Error opening "+fName);
   return null;
}
 

Since:
JViews 7.5

Constructor Summary
IlvExceptionMessage(Throwable e, String message)
          Display the message of the specified exception and additional information message in a dialog box.
 
Method Summary
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IlvExceptionMessage

public IlvExceptionMessage(Throwable e,
                           String message)
Display the message of the specified exception and additional information message in a dialog box. The title of the dialog will be constructed using the exception class and its optional message. If the message parameter is null, the same title string will be reused as the dialog message. The dialog comes with a "Detail" button that displays the exception stack trace in a text area, ready to be copied into clip board with standard accelerators. In headless environment, the stack trace is printed on the error stream.

Parameters:
e - exception to display
message - additional information to display (or null)
Since:
JViews 7.5


Copyright © 1996-2007 ILOG S.A. All rights reserved.   Documentation homepage.