Package com.mongodb

Class MongoWriteException

All Implemented Interfaces:
Serializable

public class MongoWriteException extends MongoServerException
An exception indicating the failure of a write operation.
Since:
3.0
  • Constructor Details

    • MongoWriteException

      public MongoWriteException(WriteError error, ServerAddress serverAddress)
      Construct an instance
      Parameters:
      error - the error
      serverAddress - the server address
  • Method Details

    • getError

      public WriteError getError()
      Gets the error.
      Returns:
      the error