Package com.coyotegulch.jisp
Class DuplicateKey
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.io.IOException
-
- com.coyotegulch.jisp.DatabaseException
-
- com.coyotegulch.jisp.DuplicateKey
-
- All Implemented Interfaces:
java.io.Serializable
public class DuplicateKey extends DatabaseException
AObjectIndexthrows aDuplicateKeywhen a key being added to the index is identical to a key already stored there. Each concrete index class determines the circumstances under which this exception is thrown. For example, aBTreeIndexwill throwDuplicateKeywhen a call to theinsertKeymethod finds an existing key that matches the insertion key; however, theBTreeIndex.writeKeymethod does not throw an exception for a duplicate key, instead replacing the record position associated with the extant key.- See Also:
ObjectIndex,BTreeIndex, Serialized Form
-
-
Constructor Summary
Constructors Constructor Description DuplicateKey()Constructs a newDuplicateKeywith null as its error message string.DuplicateKey(java.lang.String message)Constructs a newDuplicateKeywithmessageas its error message string.
-