Class SDOModificationException

All Implemented Interfaces:
Serializable, Iterable<Throwable>

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:
  • Constructor Details

    • SDOModificationException

      public SDOModificationException(OutputSetException open4glException, String SQLState, String errorString)
    • SDOModificationException

      public SDOModificationException(String errorString)
  • Method Details

    • nextMessage

      public boolean nextMessage()

      Position the cursor on the next error message.

      Returns:
      true there is a next message.
    • getText

      public String getText()

      Returns the text of the current error message.

      Returns:
      the text of the message.
    • getFields

      public String getFields()

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

      Returns:
      the list of fields.
    • getTable

      public String getTable()

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

      Returns:
      the table name.