public class DuplicateDataException extends OperationFailureException
Cursor.putCurrent
if the old and new
data are not equal according to the configured duplicate comparator or
default comparator.
If the old and new data are unequal according to the comparator, this would change the sort order of the record, which would change the cursor position, and this is not allowed. To change the sort order of a record, delete it and then re-insert it.
The Transaction
handle is not invalidated as a result of
this exception.
Constructor and Description |
---|
DuplicateDataException(String message)
For internal use only.
|
Modifier and Type | Method and Description |
---|---|
OperationFailureException |
wrapSelf(String msg)
For internal use only.
|
addErrorMessage, addRethrownStackTrace, getMessage, getVersionHeader
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public DuplicateDataException(String message)
public OperationFailureException wrapSelf(String msg)
wrapSelf
in class OperationFailureException
Copyright (c) 2002, 2015 Oracle and/or its affiliates. All rights reserved.