Class MongoDataIntegrityViolationException

All Implemented Interfaces:
Serializable

public class MongoDataIntegrityViolationException extends DataIntegrityViolationException
Author:
Oliver Gierke
See Also:
  • Constructor Details

    • MongoDataIntegrityViolationException

      public MongoDataIntegrityViolationException(String message, com.mongodb.WriteConcernResult writeResult, MongoActionOperation actionOperation)
      Creates a new MongoDataIntegrityViolationException using the given message and WriteConcernResult.
      Parameters:
      message - the exception message
      writeResult - the WriteConcernResult that causes the exception, must not be null.
      actionOperation - the MongoActionOperation that caused the exception, must not be null.
  • Method Details

    • getWriteResult

      public com.mongodb.WriteConcernResult getWriteResult()
      Returns the WriteConcernResult that caused the exception.
      Returns:
      the writeResult
    • getActionOperation

      public MongoActionOperation getActionOperation()
      Returns the MongoActionOperation in which the current exception occurred.
      Returns:
      the actionOperation