borland.jbcl Packages  borland.jbcl Class Hierarchy  borland.jbcl.dataset 

ExceptionListener interface

java.util.EventListener
   +----borland.jbcl.dataset.ExceptionListener

About the ExceptionListener interface

Methods  

This class is implemented for notification that an exception is generated. This is generally implemented by data-aware controls that do not have a mechanism for handling DataSetExceptions. 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(borland.jbcl.dataset.ExceptionEvent)

  public void exception(borland.jbcl.dataset.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.