# The MongoDB\Driver\WriteError class

(mongodb >=1.0.0)

## はじめに

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

## クラス概要

final MongoDB\Driver\WriteError {
/* メソッド */
final public getCode ( void ) : int
final public getIndex ( void ) : int
final public getInfo ( void ) : mixed
final public getMessage ( void ) : string
}

## 目次

- MongoDB\Driver\WriteError::getCode — Returns the WriteError's error code
- MongoDB\Driver\WriteError::getIndex — Returns the index of the write operation corresponding to this WriteError
- MongoDB\Driver\WriteError::getInfo — Returns additional metadata for the WriteError
- MongoDB\Driver\WriteError::getMessage — Returns the WriteError's error message