public class MongoDataIntegrityViolationException extends DataIntegrityViolationException
DataIntegrityViolationException.| Constructor and Description |
|---|
MongoDataIntegrityViolationException(String message,
com.mongodb.WriteResult writeResult,
MongoActionOperation actionOperation)
Creates a new
MongoDataIntegrityViolationException using the given message and WriteResult. |
| Modifier and Type | Method and Description |
|---|---|
MongoActionOperation |
getActionOperation()
Returns the
MongoActionOperation in which the current exception occured. |
com.mongodb.WriteResult |
getWriteResult()
Returns the
WriteResult that caused the exception. |
contains, getMessage, getMostSpecificCause, getRootCauseaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic MongoDataIntegrityViolationException(String message, com.mongodb.WriteResult writeResult, MongoActionOperation actionOperation)
MongoDataIntegrityViolationException using the given message and WriteResult.message - the exception messagewriteResult - the WriteResult that causes the exception, must not be null.actionOperation - the MongoActionOperation that caused the exception, must not be null.public com.mongodb.WriteResult getWriteResult()
WriteResult that caused the exception.public MongoActionOperation getActionOperation()
MongoActionOperation in which the current exception occured.Copyright © 2011–2018 Pivotal Software, Inc.. All rights reserved.