Class BulkOperationException

java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.data.mongodb.BulkOperationException
All Implemented Interfaces:
Serializable

public class BulkOperationException extends org.springframework.dao.DataAccessException
Is thrown when errors occur during bulk operations.
Since:
1.9
Author:
Tobias Trelle, Oliver Gierke
See Also:
  • Constructor Details

    • BulkOperationException

      public BulkOperationException(String message, com.mongodb.MongoBulkWriteException source)
      Creates a new BulkOperationException with the given message and source MongoBulkWriteException.
      Parameters:
      message - must not be null.
      source - must not be null.
  • Method Details

    • getErrors

      public List<com.mongodb.bulk.BulkWriteError> getErrors()
    • getResult

      public com.mongodb.bulk.BulkWriteResult getResult()