The MongoDB\Driver\WriteError class

Introduction

The MongoDB\Driver\WriteError class encapsulates information about a write error and may be returned as an array element from MongoDB\Driver\WriteResult::getWriteErrors.

Class synopsis

MongoDB\Driver\WriteError
final class MongoDB\Driver\WriteError {
/* Methods */
final public int getCode()
final public int getIndex()
final public objectnull getInfo()
final public string getMessage()
}
Table of Contents