Package com.progress.open4gl
Class SDOModificationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.sql.SQLException
com.progress.open4gl.ProSQLException
com.progress.open4gl.SDOModificationException
- All Implemented Interfaces:
Serializable
,Iterable<Throwable>
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.
- See Also:
-
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
ConstructorsConstructorDescriptionSDOModificationException
(OutputSetException open4glException, String SQLState, String errorString) SDOModificationException
(String errorString) -
Method Summary
Methods inherited from class com.progress.open4gl.ProSQLException
getProException
Methods inherited from class java.sql.SQLException
getErrorCode, getNextException, getSQLState, iterator, setNextException
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
SDOModificationException
public SDOModificationException(OutputSetException open4glException, String SQLState, String errorString) -
SDOModificationException
-
-
Method Details
-
nextMessage
public boolean nextMessage()Position the cursor on the next error message.
- Returns:
- true there is a next message.
-
getText
Returns the text of the current error message.
- Returns:
- the text of the message.
-
getFields
Returns the list of fields (if any) related to this error message.
- Returns:
- the list of fields.
-
getTable
Returns the name of the table (if any) related to this error message.
- Returns:
- the table name.
-