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:
java.io.Serializable

public class SDOModificationException
extends ProSQLException

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:
Serialized Form

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

SDOModificationException

public SDOModificationException(OutputSetException open4glException,
                                java.lang.String SQLState,
                                java.lang.String errorString)

SDOModificationException

public SDOModificationException(java.lang.String errorString)
Method Detail

getFields

public java.lang.String getFields()

Returns the list of fields (if any) related to this error message.

Returns:
the list of fields.

getTable

public java.lang.String getTable()

Returns the name of the table (if any) related to this error message.

Returns:
the table name.

getText

public java.lang.String getText()

Returns the text of the current error message.

Returns:
the text of the message.

nextMessage

public boolean nextMessage()

Position the cursor on the next error message.

Returns:
true there is a next message.