|
JClass DesktopViews 6.3.0 API Documentation |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--java.lang.Throwable | +--java.lang.Exception | +--com.klg.jclass.datasource.DataModelException
Any exceptions from this data model will be wrapped in this DataModelException. It adds information about the context of the exception (for example, bookmark, columnId). The original exception is wrapped by this class and can be gotten by calling the getWrappedException method. You can then call original-exception-specific methods on the wrapped exception. For example, if it were an SQLException you could call DataModelException.getWrappedException().getSQLState();
Field Summary | |
protected int |
action
|
protected long |
bookmark
|
protected String |
columnID
|
protected com.klg.jclass.datasource.DataTableModel |
dataTableModel
|
protected Exception |
wrappedException
|
Constructor Summary | |
DataModelException(int action,
Exception wrappedException)
Create a DataModelException. |
|
DataModelException(long bookmark,
String columnID,
com.klg.jclass.datasource.DataTableModel dataTableModel,
int action,
Exception wrappedException)
Create a DataModelException. |
Method Summary | |
int |
getAction()
Return the action which caused the Exception. |
long |
getBookmark()
Return the bookmark for the offending row. |
String |
getColumnID()
Return the columnId for the offending column. |
com.klg.jclass.datasource.DataTableModel |
getDataTableModel()
Return the DataTableModel related to the Exception. |
Exception |
getWrappedException()
Return the Exception that wrapped by this DataModelException. |
Methods inherited from class java.lang.Throwable |
fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
protected long bookmark
protected String columnID
protected com.klg.jclass.datasource.DataTableModel dataTableModel
protected int action
protected Exception wrappedException
Constructor Detail |
public DataModelException(long bookmark, String columnID, com.klg.jclass.datasource.DataTableModel dataTableModel, int action, Exception wrappedException)
bookmark
- a long uniquely identifying a rowdataTableModel
- the DataTableModel related to the Exceptionaction
- an int, one of DataModelEvent actions.wrappedException
- an ExceptionDataModelEvent
public DataModelException(int action, Exception wrappedException)
action
- an int, one of DataModelEvent actions.wrappedException
- an ExceptionDataModelEvent
Method Detail |
public long getBookmark()
public String getColumnID()
public com.klg.jclass.datasource.DataTableModel getDataTableModel()
public int getAction()
DataModelEvent
public Exception getWrappedException()
|
Copyright © 2004 Quest Software Inc.. All rights reserved. |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |