public class BatchedWriteException extends ReplyException
Constructor and Description |
---|
BatchedWriteException(BatchedWrite write,
long n,
List<WriteOperation> skipped,
Map<WriteOperation,Throwable> errors)
Creates a new BatchedWriteException.
|
Modifier and Type | Method and Description |
---|---|
Map<WriteOperation,Throwable> |
getErrors()
Returns the nested errors.
|
long |
getN()
Returns the number of touched documents when the error is triggered.
|
List<WriteOperation> |
getSkipped()
Returns the writes that did not get run by the server.
|
BatchedWrite |
getWrite()
Returns the write that caused the errors.
|
getErrorNumber, getOkValue, getReply, getRequest
addSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toString
public BatchedWriteException(BatchedWrite write, long n, List<WriteOperation> skipped, Map<WriteOperation,Throwable> errors)
write
- The write that caused the errors.n
- The number of touched documents when the error is triggered.skipped
- The writes that did not get run by the server.errors
- The nested errors.public Map<WriteOperation,Throwable> getErrors()
public long getN()
public List<WriteOperation> getSkipped()
public BatchedWrite getWrite()
Copyright © 2011–2014 Allanbank Consulting, Inc.. All rights reserved.