Package com.mongodb.bulk
Class WriteConcernError
java.lang.Object
com.mongodb.bulk.WriteConcernError
Deprecated.
Usage of this API is not supported in AEM as a Cloud Service.
An error representing a failure by the server to apply the requested write concern to the bulk operation.
- Since:
- 3.0
-
Constructor Summary
ConstructorsConstructorDescriptionWriteConcernError
(int code, String codeName, String message, BsonDocument details) Deprecated.Constructs a new instance.WriteConcernError
(int code, String message, BsonDocument details) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionboolean
Deprecated.int
getCode()
Deprecated.Gets the code associated with this error.Deprecated.Gets the name associated with the error code.Deprecated.Gets the details associated with this error.Deprecated.Gets the message associated with this error.int
hashCode()
Deprecated.toString()
Deprecated.
-
Constructor Details
-
WriteConcernError
Deprecated.Constructs a new instance.- Parameters:
code
- the error codecodeName
- the error code namemessage
- the error messagedetails
- any details
-
WriteConcernError
Deprecated.Constructs a new instance.- Parameters:
code
- the error codemessage
- the error messagedetails
- any details
-
-
Method Details
-
getCode
public int getCode()Deprecated.Gets the code associated with this error.- Returns:
- the code
-
getCodeName
Deprecated.Gets the name associated with the error code.- Returns:
- the error code name, which may be the empty string
- Since:
- 3.8
-
getMessage
Deprecated.Gets the message associated with this error.- Returns:
- the message
-
getDetails
Deprecated.Gets the details associated with this error. This document will not be null, but may be empty.- Returns:
- the details
-
equals
Deprecated. -
hashCode
public int hashCode()Deprecated. -
toString
Deprecated.
-