jbcl.model Package
java.lang.Object +----com.borland.jbcl.model.DataSetModel
Properties Methods
The DataSetModel
class is a DataSetException
handler. It displays an error dialog (ExceptionDialog
) when a DataSetException
is thrown. See ExceptionDialog
for descriptions of properties that can be set to configure the capabilities of the error dialog.
public static final void handleException(DataSet dataSet, Component component, Exception ex)Calls
handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean)
and passes to it the dataSet
, component
, and ex
parameter values. It also passes false as the value of the modal
parameter.
Parameters:
dataSet
DataSet
the exception occurs in if the exception is a DataSet
exception.
component
ex
Exception
that occurs.
public static final void handleException(DataSet dataSet, Component component, Exception ex, boolean modal)The exception handler method. If there are registered listeners for
DataSetExceptions
, an ExceptionEvent
is dispatched to each of them. If there are no registered listeners for DataSetExceptions
, a DBExceptionDialog
appears. The appearance and behavior of the DBExceptionDialog
depend on its property settings.
Parameters:
dataSet
DataSet
the exception occurs in if the exception is a DataSet
exception.
component
ex
Exception
that occurs.
modal
public static final void handleException(Component component, Exception ex, boolean modal)Calls
handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean)
and passes to it the component
and modal
parameter values. It also passes null for the dataSet
and ex
values.
Parameters:
component
modal
public static final void handleException(Exception ex)Calls the
handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean)
method and passes the exception and null values for the dataSet
, component
and modal
parameters.
Parameters:
ex
Exception
that occurs.
public static final void handleException(Exception ex, boolean modal)Calls
handleException(com.borland.dx.dataset.DataSet, java.awt.Component, java.lang.Exception, boolean)
and passes to it the ex
and modal
parameter values. It passes a null value for the dataSet
and component
values.
Parameters:
ex
Exception
that occurs.
modal