Package com.mongodb
Class BulkWriteException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
com.mongodb.MongoException
com.mongodb.MongoServerException
com.mongodb.BulkWriteException
- All Implemented Interfaces:
- Serializable
An exception that represents all errors associated with a bulk write operation.
- Since:
- 2.12
- MongoDB documentation
- BulkWriteResult.writeErrors
- 
Field SummaryFields inherited from class com.mongodb.MongoExceptionTRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
- 
Method SummaryModifier and TypeMethodDescriptionbooleanThe write concern error, which may be null (in which case the list of errors will not be empty).The list of errors, which will not be null, but may be empty (if the write concern error is not null).The result of all successfully processed write operations.inthashCode()Methods inherited from class com.mongodb.MongoServerExceptiongetErrorCodeName, getServerAddressMethods inherited from class com.mongodb.MongoExceptionaddLabel, addLabels, addLabels, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabelMethods inherited from class java.lang.ThrowableaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
- 
Method Details- 
getWriteResultThe result of all successfully processed write operations. This will never be null.- Returns:
- the bulk write result
 
- 
getWriteErrorsThe 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
 
- 
getWriteConcernErrorThe write concern error, which may be null (in which case the list of errors will not be empty).- Returns:
- the write concern error
 
- 
equals
- 
hashCodepublic int hashCode()
 
-