Class MongoDataIntegrityViolationException

    • Constructor Detail

      • MongoDataIntegrityViolationException

        public MongoDataIntegrityViolationException(String message,
                                                    com.mongodb.WriteResult writeResult,
                                                    MongoActionOperation actionOperation)
        Creates a new MongoDataIntegrityViolationException using the given message and WriteResult.
        message - the exception message
        writeResult - the WriteResult that causes the exception, must not be null.
        actionOperation - the MongoActionOperation that caused the exception, must not be null.
    • Method Detail

      • getWriteResult

        public com.mongodb.WriteResult getWriteResult()
        Returns the WriteResult that caused the exception.
        the writeResult