(mongodb >=1.0.0)
MongoDB\Driver\WriteError 類別封裝了寫入錯誤的相關資訊,並可能以陣列元素的形式從 MongoDB\Driver\WriteResult::getWriteErrors() 返回。