Package com.mongodb
Class WriteConcernError
java.lang.Object
com.mongodb.WriteConcernError
An error representing a failure by the server to apply the requested write concern to the bulk operation.
- Since:
- 2.12
- MongoDB documentation
- Write Concern
- 
Constructor SummaryConstructorsConstructorDescriptionWriteConcernError(int code, String message, DBObject details) Constructs a new instance.
- 
Method Summary
- 
Constructor Details- 
WriteConcernErrorConstructs a new instance.- Parameters:
- code- the error code
- message- the error message
- details- any details
 
 
- 
- 
Method Details- 
getCodepublic int getCode()Gets the code associated with this error.- Returns:
- the code
 
- 
getMessageGets the message associated with this error.- Returns:
- the message
 
- 
getDetailsGets the details associated with this error. This document will not be null, but may be empty.- Returns:
- the details
 
- 
equals
- 
hashCodepublic int hashCode()
- 
toString
 
-