Serializable
public class MongoBulkWriteException extends MongoServerException
Constructor | Description |
---|---|
MongoBulkWriteException(BulkWriteResult writeResult,
List<BulkWriteError> writeErrors,
WriteConcernError writeConcernError,
ServerAddress serverAddress) |
Constructs a new instance.
|
Modifier and Type | Method | Description |
---|---|---|
boolean |
equals(Object o) |
|
ServerAddress |
getServerAddress() |
The address of the server which performed the bulk write operation.
|
WriteConcernError |
getWriteConcernError() |
The write concern error, which may be null (in which case the list of errors will not be empty).
|
List<BulkWriteError> |
getWriteErrors() |
The list of errors, which will not be null, but may be empty (if the write concern error is not null).
|
BulkWriteResult |
getWriteResult() |
The result of all successfully processed write operations.
|
int |
hashCode() |
fromThrowable, fromThrowableNonNull, getCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public MongoBulkWriteException(BulkWriteResult writeResult, List<BulkWriteError> writeErrors, @Nullable WriteConcernError writeConcernError, ServerAddress serverAddress)
writeResult
- the write resultwriteErrors
- the list of errorswriteConcernError
- the write concern errorserverAddress
- the server address.public BulkWriteResult getWriteResult()
public List<BulkWriteError> getWriteErrors()
public WriteConcernError getWriteConcernError()
public ServerAddress getServerAddress()
getServerAddress
in class MongoServerException