Package com.mongodb

Class BulkWriteException

  • All Implemented Interfaces:

    public class BulkWriteException
    extends MongoServerException
    An exception that represents all errors associated with a bulk write operation.
    Since:
    2.12
    See Also:
    Serialized Form
    MongoDB documentation
    Since server release
    • Method Detail

      • getWriteResult

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

        public <BulkWriteError> getWriteErrors()
        The list of errors, which will not be null, but may be empty (if the write concern error is not null).
        Returns:
        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).
        Returns:
        the write concern error
      • equals

        public boolean equals​( o)
        Overrides:
         in class 
      • hashCode

        public int hashCode()
        Overrides:
         in class