Package org.springframework.data.mongodb
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
Is thrown when errors occur during bulk operations.
- Since:
- 1.9
- Author:
- Tobias Trelle, Oliver Gierke
- See Also:
-
Constructor Summary
ConstructorDescriptionBulkOperationException
(String message, com.mongodb.MongoBulkWriteException source) Creates a newBulkOperationException
with the given message and sourceMongoBulkWriteException
. -
Method Summary
Methods inherited from class org.springframework.core.NestedRuntimeException
contains, getMostSpecificCause, getRootCause
Methods inherited from class java.lang.Throwable
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
-
Constructor Details
-
BulkOperationException
Creates a newBulkOperationException
with the given message and sourceMongoBulkWriteException
.- Parameters:
message
- must not be null.source
- must not be null.
-
-
Method Details
-
getErrors
-
getResult
public com.mongodb.bulk.BulkWriteResult getResult()
-