|
|||||||
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 | +--java.sql.SQLException | +--com.progress.open4gl.ProSQLException | +--com.progress.open4gl.SDOModificationException
The SDOModificationException exception is thrown when an update, delete or insert fails (or a combination - if a batch update is used). The SDO on the server side concatenates all the errors into one error string, with information about table names and the list of fields related to the update attempt. Use the following methods to get structured information about the failure: boolean nextMessage() - To move to the next message. String getText() - To get the text of the message. String getFields - To get the list of fields. String getTable() - To get the table name.
Field Summary |
Fields inherited from class com.progress.open4gl.ProSQLException |
state_08S01, state_S1000, state_S1002, state_S1008, state_S1010, state_S1C00, state_S1T00 |
Constructor Summary | |
SDOModificationException(OutputSetException open4glException,
java.lang.String SQLState,
java.lang.String errorString)
|
|
SDOModificationException(java.lang.String errorString)
|
Method Summary | |
java.lang.String |
getFields()
Returns the list of fields (if any) related to this error message. |
java.lang.String |
getTable()
Returns the name of the table (if any) related to this error message. |
java.lang.String |
getText()
Returns the text of the current error message. |
boolean |
nextMessage()
Position the cursor on the next error message. |
Methods inherited from class com.progress.open4gl.ProSQLException |
getProException |
Methods inherited from class java.sql.SQLException |
getErrorCode, getNextException, getSQLState, setNextException |
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 |
Constructor Detail |
public SDOModificationException(OutputSetException open4glException, java.lang.String SQLState, java.lang.String errorString)
public SDOModificationException(java.lang.String errorString)
Method Detail |
public java.lang.String getFields()
Returns the list of fields (if any) related to this error message.
public java.lang.String getTable()
Returns the name of the table (if any) related to this error message.
public java.lang.String getText()
Returns the text of the current error message.
public boolean nextMessage()
Position the cursor on the next error message.
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |