org.springframework.data.mongodb.core
Class MongoDataIntegrityViolationException
java.lang.Object
java.lang.Throwable
java.lang.Exception
java.lang.RuntimeException
org.springframework.core.NestedRuntimeException
org.springframework.dao.DataAccessException
org.springframework.dao.NonTransientDataAccessException
org.springframework.dao.DataIntegrityViolationException
org.springframework.data.mongodb.core.MongoDataIntegrityViolationException
- All Implemented Interfaces:
- Serializable
public class MongoDataIntegrityViolationException
- extends DataIntegrityViolationException
Mongo-specific DataIntegrityViolationException.
- Author:
- Oliver Gierke
- See Also:
- Serialized Form
MongoDataIntegrityViolationException
public MongoDataIntegrityViolationException(String message,
com.mongodb.WriteResult writeResult,
MongoActionOperation actionOperation)
- Creates a new
MongoDataIntegrityViolationException using the given message and WriteResult.
- Parameters:
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.
getWriteResult
public com.mongodb.WriteResult getWriteResult()
- Returns the
WriteResult that caused the exception.
- Returns:
- the writeResult
getActionOperation
public MongoActionOperation getActionOperation()
- Returns the
MongoActionOperation in which the current exception occured.
- Returns:
- the actionOperation
Copyright © 2011-2013-2014 Pivotal. All Rights Reserved.