code: public void write(WriteOptions writeOptions, WriteBatch batch) throws RocksDbException {
          try {
              rocksDb.write(writeOptions != null ? writeOptions : this.writeOptions, batch);
          } catch (Exception e) {
              throw e instanceof RocksDbException ? (RocksDbException) e : new RocksDbException(e);
          }
      }
docs: See {@link RocksDB#write(WriteOptions, WriteBatch)}.
  
  @param writeOptions
  @param batch
  @throws RocksDbException