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