Class DuplicateKeyException

  • All Implemented Interfaces:
    Serializable

    public class DuplicateKeyException
    extends MongoDataException
    Mongo exception thrown when a document can't be inserted because there's already a document with the same key.
    Author:
    avasquez
    See Also:
    Serialized Form
    • Constructor Detail

      • DuplicateKeyException

        public DuplicateKeyException()
      • DuplicateKeyException

        public DuplicateKeyException​(String message)
      • DuplicateKeyException

        public DuplicateKeyException​(String message,
                                     Throwable cause)
      • DuplicateKeyException

        public DuplicateKeyException​(Throwable cause)
      • DuplicateKeyException

        public DuplicateKeyException​(String message,
                                     Throwable cause,
                                     boolean enableSuppression,
                                     boolean writableStackTrace)