- PHP 手册
- 函数参考
- 数据库扩展
- 针对各数据库系统对应的扩展
- MongoDB
- MongoDB\Driver
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 class MongoDB\Driver\WriteError { /* 方法 */ final public getCode(): int final public getIndex(): int final public getInfo(): ?object final public getMessage(): 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 metadata document for the WriteError
- MongoDB\Driver\WriteError::getMessage — Returns the WriteError's error message
User Contributed Notes
There are no user contributed notes for this page.官方地址:https://www.php.net/manual/en/class.mongodb-driver-writeerror.php