Package com.mongodb

Class MongoWriteException

  • All Implemented Interfaces:

    public class MongoWriteException
    extends MongoServerException
    An exception indicating the failure of a write operation.
    Since:
    3.0
    See Also:
    Serialized Form
    • Constructor Detail

      • MongoWriteException

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

      • getError

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