org.springframework.data.mongodb

Class BulkOperationException

  • All Implemented Interfaces:
    Serializable


    public class BulkOperationException
    extends DataAccessException
    Is thrown when errors occur during bulk operations.
    Since:
    1.9
    Author:
    Tobias Trelle, Oliver Gierke
    See Also:
    Serialized Form
    • Constructor Detail

      • BulkOperationException

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

      • getErrors

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

        public com.mongodb.BulkWriteResult getResult()