The MongoWriteConcernException class

(PECL mongo >= 1.5.0)

锟斤拷锟�

MongoWriteConcernException is thrown when a write fails. See Write Concerns for how to set failure thresholds.

Prior to MongoDB 2.6.0, the » getLastError command would determine whether a write failed.

锟斤拷摘要

MongoWriteConcernException extends MongoCursorException {
/* 锟教承碉拷锟斤拷锟斤拷 */
protected string $message ;
protected int $code ;
protected string $file ;
protected int $line ;
/* 锟斤拷锟斤拷 */
public getDocument ( void ) : array
/* 锟教承的凤拷锟斤拷 */
public MongoCursorException::getHost ( void ) : string
}

Table of Contents