Package com.mongodb

Class MongoBulkWriteException

    • Constructor Detail

      • MongoBulkWriteException

        public MongoBulkWriteException​(BulkWriteResult writeResult,
                                       List<BulkWriteError> writeErrors,
                                       WriteConcernError writeConcernError,
                                       ServerAddress serverAddress)
        Constructs a new instance.
        writeResult - the write result
        writeErrors - the list of errors
        writeConcernError - the write concern error
        serverAddress - the server address.
    • Method Detail

      • getWriteResult

        public BulkWriteResult getWriteResult​()
        The result of all successfully processed write operations. This will never be null.
        the bulk write result
      • getWriteErrors

        public List<BulkWriteError> getWriteErrors​()
        The list of errors, which will not be null, but may be empty (if the write concern error is not null).
        the list of errors
      • getWriteConcernError

        public WriteConcernError getWriteConcernError​()
        The write concern error, which may be null (in which case the list of errors will not be empty).
        the write concern error
      • hashCode

        public int hashCode​()
        hashCode in class Object