Package com.mongodb
Class MongoBulkWriteException
- java.lang.Object
-
- java.lang.Throwable
-
- java.lang.Exception
-
- java.lang.RuntimeException
-
- com.mongodb.MongoException
-
- com.mongodb.MongoServerException
-
- com.mongodb.MongoBulkWriteException
-
- All Implemented Interfaces:
java.io.Serializable
@Deprecated(since="2021-05-27") public class MongoBulkWriteException extends MongoServerException
Deprecated.Usage of this API is not supported in AEM as a Cloud Service.An exception that represents all errors associated with a bulk write operation.- Since:
- 3.0
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class com.mongodb.MongoException
TRANSIENT_TRANSACTION_ERROR_LABEL, UNKNOWN_TRANSACTION_COMMIT_RESULT_LABEL
-
-
Constructor Summary
Constructors Constructor Description MongoBulkWriteException(BulkWriteResult writeResult, java.util.List<BulkWriteError> writeErrors, WriteConcernError writeConcernError, ServerAddress serverAddress)
Deprecated.Constructs a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description boolean
equals(java.lang.Object o)
Deprecated.ServerAddress
getServerAddress()
Deprecated.The address of the server which performed the bulk write operation.WriteConcernError
getWriteConcernError()
Deprecated.The write concern error, which may be null (in which case the list of errors will not be empty).java.util.List<BulkWriteError>
getWriteErrors()
Deprecated.The list of errors, which will not be null, but may be empty (if the write concern error is not null).BulkWriteResult
getWriteResult()
Deprecated.The result of all successfully processed write operations.int
hashCode()
Deprecated.-
Methods inherited from class com.mongodb.MongoException
addLabel, fromThrowable, fromThrowableNonNull, getCode, getErrorLabels, hasErrorLabel, removeLabel
-
-
-
-
Constructor Detail
-
MongoBulkWriteException
public MongoBulkWriteException(BulkWriteResult writeResult, java.util.List<BulkWriteError> writeErrors, @Nullable WriteConcernError writeConcernError, ServerAddress serverAddress)
Deprecated.Constructs a new instance.- Parameters:
writeResult
- the write resultwriteErrors
- the list of errorswriteConcernError
- the write concern errorserverAddress
- the server address.
-
-
Method Detail
-
getWriteResult
public BulkWriteResult getWriteResult()
Deprecated.The result of all successfully processed write operations. This will never be null.- Returns:
- the bulk write result
-
getWriteErrors
public java.util.List<BulkWriteError> getWriteErrors()
Deprecated.The 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
-
getWriteConcernError
public WriteConcernError getWriteConcernError()
Deprecated.The write concern error, which may be null (in which case the list of errors will not be empty).- Returns:
- the write concern error
-
getServerAddress
public ServerAddress getServerAddress()
Deprecated.The address of the server which performed the bulk write operation.- Overrides:
getServerAddress
in classMongoServerException
- Returns:
- the address
-
equals
public boolean equals(java.lang.Object o)
Deprecated.- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
Deprecated.- Overrides:
hashCode
in classjava.lang.Object
-
-