borland Packages  Class Hierarchy  dx.dataset Package 

ExceptionListener interface

java.util.EventListener
   +----com.borland.dx.dataset.ExceptionListener

About the ExceptionListener interface

Methods  

This interface is implemented for notification that an exception is generated. This is generally implemented by applications that want centralized control over the handling of DataSetExceptions encountered by data-aware controls. When a data-aware control gets an exception from a data set, the default handleException method has control and may display a dialog box with the exception or may treat it as a ValidationException. This class is used to allow you to decide how to handle the exception.

The reference to this listener is statically stored in the DataSet class. If the DataSet class is ever garbage collected, the registration of this listener will be lost. To prevent this, you can hold a reference to the DataSet class with the following statement:

Void main(String args){
Object classHolder = DataSet.class;
}

ExceptionListener methods

Methods defined in this interface


ExceptionListener methods

exception(com.borland.dx.dataset.ExceptionEvent)

  public void exception(ExceptionEvent event)

Called when a DataSetException occurs.

Parameters:

event
An ExceptionEvent object that tells what exception occurred and the data set and component where it occurred.